Showing reports on a Dynamics CRM dashboard

The previous recipe, Installing the free Dashboard Reports control, showed the reader how to install and test the CRM Dashboard Reporting control. This recipe will create a new User dashboard and add the reporting control while learning about the various features.

Getting ready

In order to complete this recipe, the user must have installed the Dashboard Reporting Control for Microsoft Dynamics CRM 2011 solution package as outlined in the previous recipe.

How to do it...

Carry out the following steps in order to complete this recipe:

  1. Select the Dashboards link from the Workplace area and click on the New button to create a new User dashboard:
    How to do it...
  2. The Select Dashboard Layout dialog will appear; select the 3-Column Overview Dashboard layout and click on the Create button, as shown in the following screenshot:
    How to do it...
  3. For the Name of the new dashboard, enter Sales Pipeline Dashboard and then click on the Save button:
    How to do it...
  4. Customize the first tab of the dashboard by changing the label from Tab to Charts. Then, add three charts that show data related to the Sales module. Add the following charts for the Opportunity entity and base them on the My Open Opportunities view. The charts are: Top Customers, Sales Pipeline, and Top Opportunities. The dashboard should look like the following screenshot:
    How to do it...
  5. Move onto the second tab and change the label from Tab to Report. Add a web resource by clicking on the icon with the tool tip Insert Web Resource located in the component placeholder, as shown in the following screenshot:
    How to do it...
  6. The Add Web Resource dialog will appear; click on the lookup button to search for available web resource components:
    How to do it...
  7. Locate the web resource named msdyn_ReportControl, select it, and click on the OK button to continue:
    How to do it...
  8. Back on the Add Web Resource dialog, make sure that the Restrict cross-frame scripting and Pass record object-type code and unique identifier as parameters options are not checked. Leave the Custom Parameter(data) textbox empty for now and click on the OK button. On the main Dashboard Editor screen, click on the Save button to commit all recent changes:
    How to do it...
  9. Now, we need to gather information about the report to display in the dashboard. Navigate to the Reports module in the Workplace area; locate and select the report named Sales Pipeline in the Available Reports view. Right-click on the record to show the Options menu, and click the Copy a Link menu item:
    How to do it...
  10. This next step will parse the copied link to get the unique report id needed for the dashboard component. Open up a simple text editor such as notepad and paste the string value that was copied from Dynamics CRM. The link should look something like the following (the id value will probably be different):

    https://demosoftbridge.crm.dynamics.com/crmreports/viewer/viewer.aspx?id=%7b51B73213-68F5-DE11-AB95-02BF0A0679D8%7d

  11. From this long string value, copy the id value to your clipboard. The id value is located between the %7b and %7d character patterns. Based on the link in our example, we would only copy the following value to our clipboard:
    51B73213-68F5-DE11-AB95-02BF0A0679D8
    
  12. Navigate back to the new dashboard and edit the Report Control component. Paste the report id value into the Custom Parameter(data) field and click on the OK button, shown in the following screenshot:
    How to do it...
  13. On the Dashboard Editor screen, click on the Save and Close button. Navigate to the Dashboards area in Dynamics CRM, locate the new Sales Pipeline dashboard and select it so that the results are displayed on the screen.
  14. The report being displayed is fully interactive; you can adjust the report's filter settings and drill down into the charts, as shown in the following screenshot:

Note

Similar to using a standard IFrame, depending on the size of the report being shown, horizontal and vertical scroll bars will appear to help you navigate and view the report contents.

How to do it...

How it works...

The Reporting Control uses the report id value to determine which report to show on the dashboard. Once provided, it calls the standard viewer.aspx and shows it in an IFrame that has been tailored for viewing on a dashboard.

There's more....

There is no hard rule for placing a report on a dashboard. The user can have it stretched horizontal or vertical depending on their preference and the content of the report.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.104.202