Analyzer Samples
Displaying a report in viewer mode
This sample renders a xanalyzer report using a regular GET request, by populating an HTML IFRAME with the report REST URL:
http://localhost:8080/pentaho/api/repos/<path>/viewer
The viewer has limited possibilities for interaction and does not allow changing the report.
Displaying a report in editor mode
The sample renders the report with full Analyzer IU by populating an HTML IFRAME with the report REST URL:
http://localhost:8080/pentaho/api/repos/<path>/editor
The IFRAME now renders the full Analyzer user interface, allowing users to interact with the data.
Creating a new report
The sample prepares a new report by populating an HTML IFRAME with the report REST URL:
http://localhost:8080/pentaho/api/repos/xanalyzer/editor?catalog=<Schema>&cube=<CubeName>
The mandatory catalog and cube parameters specify the analysis schema and cube to use for the new report.
Integrating into a custom web application via an IFRAME
The sample opens a new page that mimics a parent application that integrates Analyzer using an IFrame. The parent application has a set of buttons interacting with the Analyzer UI in the embedded IFRAME. Studying this page is a good starting point, if you are trying to deeply integrate analyzer into your own web application.
Specifying the select schema service
The sample is opened with a specified data service.
http://localhost:8080/pentaho/api/re...e/selectSchema
After a data service is selected, the sample opens and shows an unsaved Analyzer report using that data service.