Embedding report content in external pages
The HTML page can include multiple reports; however each separate report may only be displayed once on each page.
Multiple dashboards on a single page are not currently supported.
Interactive elements such as Drill Through, Drill Down, User Prompt Filters, Series Selection, and Export to PDF are available.
The following topics explain more about the embedding report option:
Displaying reports and dashboards
This section explains the features related to displaying reports and dashboards.
The embedded report contains a title bar and the report itself. The title bar contains the name of the report, as well as buttons to control any interactive elements used on the report. The interactive features include:
Displays basic report information including Name, Description, Last Modified Date, Category, Sub Category, and Current User.
Allows you to toggle to Chart view if the Table and Chart display is used.
Allows you to toggle to Table view if the Table and Chart display is used.
Opens the panel of User Prompt Filters that are enabled on the report.
Opens a Series Selection panel, if the Visible Series Selection option is enabled.
Opens a Unit Selection panel, if the Visible Units Selection option is enabled.
Opens a Page Navigation panel, if the report contains multiple pages.
Opens a Section Navigation panel, if the report contains sections.
Opens the GIS Map Navigation panel, if the map has Hover Navigation enabled.
Opens the Export panel, allowing the user to export the report to various formats, including:
The embedded dashboard contains a title bar for the entire dashboard. Each of the dashboard reports (displayed the same as embedded reports), are laid out the same way as they are when viewed through the Smart Reporting front end.
Dashboard filters and KPI dashboards are supported.
Displays the basic dashboard information including Name, Description, Last Modified Date, and Current User.
Opens a panel of User Prompt Filters enabled on the dashboard.
Opens the Export panel, allowing the user to export the dashboard to various formats, including:
Embedding a report
- Log in to BMC Remedy Smart Reporting.
- Open the report that you want to embed.
- From the report URL, copy the report UUID and the clientOrg (highlighted in bold in the following example).
For example, http://<Smart Reporting server name>:<port>/RunReport.i4;b9669409-3cf8-4290-b914-e742778e0ab1=58455c98-7b84-4c20-9ffb-fc0ba6dd8c00?reportUUID=eb363c0e-71bf-47b1-898b-dc5068dd0ff6&primaryOrg=1&clientOrg=bmc&width=500&height=500.
On the HTML page where you want to embed the report, in the following standard script tag, replace the existing report UUID and the clientOrg with the copied report UUID and the clientOrg name respectively:
Where to go from here
Set the required parameters and see the examples documented in the Basic usage of reports and dashboards section.
Authentication details can be passed to the API when the dashboard or report is loaded, either by passing a username and password, or authenticating via web services and passing the login token o the API. This allows you to use a specific user to load content rather than requiring the user to enter their details. For more information, see Basic usage of reports and dashboards.
- If the user authentication details are passed to the API when a dashboard or report is loaded, they will be used to log the user in.
When the above process is complete, there are several cases that will not result in the user immediately loading the requested content:
- If none of the above conditions are met, the user cannot be logged in, and they will be prompted to enter their Smart Reporting username and password manually.
- If the above process results in the user logging in with the Guest account, but the requested report or dashboard is not available to guest users, they will be prompted to enter their Smart Reporting username and password.
- If the above process results in the user being authenticated with a non-guest account, but the account does not have access to the requested content, an appropriate error message will be displayed.
The cookie value is stored in the browser is encrypted. When Smart Reporting is restarted, all users will be required to log in again.
The following are the limitations of the embed option:
- You can add multiple reports to a single HTML page. However, each report can only be included once per page.
- Only one dashboard is supported per HTML page.
- The calendar selector for date filters is not available.
- The Drill Anywhere option is not available.
- The Saved Filter Sets option is not available.
- The Chart Animation option is not available.
- The Chart level summaries are not display correctly.