Generating JavaScript for embedding a report or dashboard
Perform the following steps to create the JavaScript code that identifies the report to load and use in your HTML page, wiki, or blog.
- Log in to Remedy AR System as a system administrator.
Create a service user with minimum read access to the report that you are embedding.
- Log in to Remedy Smart Reporting as a system administrator.
- Change the password of the service user created in step 2.
- Open the report that you want to embed.
- From the report URL, copy the report UUID and the clientOrg name, that are highlighted in bold in the following example:
http://RemedySmartReportingServerName: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, complete the following steps in the standard script tag:
- Replace the existing report UUID and the clientOrg with the copied report UUID and the clientOrg name, respectively.
Replace the existing user name and password with the user name and password of the service user that you have created.
<script src="http://localhost/JsAPI?reportUUID=e5e5aaf3-c3b8-4f9b-8280-e21e4d848e63&width=500&height=350&username=<serviceUser>&password=test&clientOrg=bmc" type="text/javascript"></script>
- Save the HTML page and deploy this page in the web server.
To view the embedded report, open the HTML page in a web browser.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*