| This section describes functionality that can be restricted by the software license for JasperReports Server. If you don’t see some of the options described in this section, your license may prohibit you from using them. To find out what you're licensed to use, or to upgrade your license, contact Jaspersoft. |
The resource service also gives access to dashboard resources in commercial editions of JasperReports Server. Dashboards are managed as normal resources whose descriptors can be created, viewed, modified, or deleted with the resource service. However, dashboards can be viewed only through the web interface of JasperReports Server because they do not have any output format that can be generated or transmitted through the REST API.
Therefore, an application using the REST API can only manipulate the definition of the dashboard, that is the selection of reports to display and their layout. In order to work with a dashboard, your application must parse its resource descriptor, make changes, and generate a new, valid descriptor to send back to the server.
The general structure of a dashboard descriptor contains:
| • | Typical descriptor properties such as label, description, and PROP_PARENT_FOLDER. |
| • | The dashboardState descriptor containing: |
| • | The ADHOC_FRAMES property that lists the reports, labels, and buttons, and gives their coordinates in the dashboard. |
| • | The ADHOC_PROPERTIES property that gives the overall dashboard layout properties. |
| • | reference descriptors for each of the reports included in the ADHOC_FRAMES property. These references ensure that the reports can’t be deleted from the repository as long as they are used in this dashboard. |
The following example shows the contents of a dashboard’s resource descriptor:
Recommended Comments
There are no comments to display.