Interactive Reporting Samples
Displaying an interactive report
This sample renders a prpti report using a regular GET request, by populating an HTML IFRAME with the report REST URL:
http://localhost:8080/pentaho/api/repos/<path>/prpti.view
The viewer has limited possibilities for interaction and does not allow changing the report.
You can use the prpti.edit
end-point instead, to allow more user interaction.
Creating a new interactive report
The sample prepares a new report by populating an HTML IFRAME with the report REST URL:
http://localhost:8080/pentaho/api/repos/pentaho-interactive-reporting/prpti.new
Users will be prompted to select the datasource they want to work with.
Integrating into a custom web application via an IFRAME
The sample opens a new page that mimics a parent application that integrates the Interactive Reporting editor using an IFrame. The parent application has a set of buttons interacting with the Interactive Reporting UI in the embedded IFRAME. Studying this page is a good starting point, if you are trying to deeply integrate Interactive Reporting into your own web application.