locked
CRM 4.0 default view to be "ALL" RRS feed

  • Question

  • Hi ,

    I went to set default view filter on "ALL".

    Please provide me suggestion......

     

    Thursday, February 2, 2012 5:09 AM

Answers

  • Hi,

    These are the steps to change CRM 4.0 to give you the default of "All"

    1. Navigate to the location on your CRM server: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_static\_controls\appgridfiltercontainer
    2. Rename the file AppGridFilterContainer.htc  to Original-AppGridFilterContainer.htc  >> make sure no one is using your system!
    3. Download the following file: AppGridFilterContainer.zip
    4. Unzip the file (use: 7Zip or WinZip) and copy the extracted file to the same location on your CRM 4.0 Server as above i.e. C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_static\_controls\appgridfiltercontainer
    5. Clear your Temporary Internet Files in Internet Explorer. For Internet Explorer 7.0 users go to ‘Tools’ > ‘Delete Browsing History’ and then select  ‘Delete Files ..’ under the heading ‘Temporary Internet Files’. This will clear any cached files. Stops you getting any unwanted scenarios when testing this change.
    6. Now you are ready to test your CRM instance for the default view change!

    If you want to know what is changed between the file you downloaded and the file provided by CRM then you could use a file compare tool or simply see the change below:

    BEFORE:

       1: if(!IsNull(oCtrl.DataValue))
       2: {
       3: oCallback(oCtrl);

     AFTER:

    1: if(!IsNull(oCtrl.DataValue))

       2: {
       3: if(oCtrl.DataValue=="LastXDays;30" || oCtrl.DataValue=="NextXDays;30" || oCtrl.DataValue=="0")
       4: {
       5: oCtrl.DataValue = "All"
       6: RefreshGridView();
       7: }
       8: oCallback(oCtrl);

    BEFORE: Default view is ‘Next 30 days’ as shown below:

    AFTER:  Default view now is ‘All’ as shown below:

     

    Hope that helps!

     


    Thanks & Regards, MS CRM Consultant, V.Surya.
    • Proposed as answer by SuryaMSCRM Thursday, February 2, 2012 6:04 AM
    • Marked as answer by Venkat_MSCRM Thursday, February 2, 2012 6:33 AM
    Thursday, February 2, 2012 6:04 AM

All replies