Panel | ||
---|---|---|
| ||
Dashboard components offer a visual representation of data to the user. They consist of an SQL statement, which if needed, They can be dynamically altered by adding certain filters and criteria. implemented by a Java method that returns the data and a metadata XML file. What does this section cover?
|
...
There are two types of dashboard components, chart and summary.
Chart Dashboard Components
To create a new Chart Dashboard Component, you need to create:
- An XML file that will define the method that will be called to retrieve the results and the various settings of the dashboard component's data source, type, and various settings.
- A Java method that will retrieve the dashboard results.
- A summary page that the dashboard component will link to.
A data entry page (definition and layout XML pages) that will give the user the ability to adjust the dashboard settings to apply an additional filtering. (optional)
Dashboard Component XML file
All dashboard component XML files must be placed under ../pages/dashboards/<module_name> directory.
In the following example completedActinitiesPerTypeAndMonth.xml is created under ../pages/dashboards/activities
Defining Dashboard Components in Metadata
In order for the report Also, in order for the dashboard to be available to the user, it must be defined in metadata file modules.xml, which is located under ../metadata directory.
Expand | ||
---|---|---|
| ||
Summary Dashboard Components
To create a new Summary Dashboard Component, you need to create:
- An XML file that will define the component's data source, type, and various settings.
- The embedded summary page that will retrieve and display the dashboard results.
Also, in order for the dashboard to be available to the user, it must be defined be defined in metadata file file modules.xml, which is located under under ../metadata directory directory.
Code Blockexpand | ||||
---|---|---|---|---|
| ||||
| ||||
For more information on creating dashboard components, go to Create Dashboard Components. For a full list of metadata dashboard attributes, go to Dashboards Metadata.