Skip to main content
Pentaho Documentation

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. The viewer has limited possibilities for interaction and can't edit the report. The example below shows how to do this by replacing the path within the <> with the URL for the report that you want to view.

http://localhost:8080/pentaho/api/repos/<%3Ayour%3Apath%3Agoes%3Ahere.prpti>/prpti.view

You can use the prpti.edit end-point instead, to allow more user interaction with the report.

http://localhost:8080/pentaho/api/repos/<%3Ayour%3Apath%3Agoes%3Ahere.prpti>/prpti.edit

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

In order to show the toolbar buttons so that users can create, open, or save Interactive reports, add the following to the end of the URL.

?showRepositoryButtons=true

Users will be prompted to select the data source 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.