Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
nameidblue0

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?

Table of Contents

...

There are two types of dashboard components, chart and summary.

Chart Dashboard Components

 

To create a new Chart Dashboard Component, you need to create:

  1. 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.
  2. A Java method that will retrieve the dashboard results.
  3. A summary page that the dashboard component will link to.
  4. 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
titleCompleted Activities Per Type And Month

Image Added

Summary Dashboard Components

To create a new Summary Dashboard Component, you need to create:

  1. An XML file that will define the component's data source, type, and various settings.
  2. 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.

 <modules> <module> <moduleid>ACCOUNTS_RECEIVABLE</moduleid> <applicationid>FINANCE</applicationid> ... <features> <feature> ... <reports> <report> <id>ACCOUNTS_RECEIVABLE_BALANCE_REPORT</id> <name>key_accounts_receivable_balance</name> <description>key_view_the_accounts_receivable_balance</description> <reportfilename>AccountsReceivable/Accounts_Receivable_Balance.xml</reportfilename> </report> ... </reports> </feature> ... </features> </module> </modules>
Code Blockexpand
languagexml
titlemodules.xml
titleNon completed activities of logged in user

Image Added


For more information on creating dashboard components, go to Create Dashboard ComponentsFor a full list of metadata dashboard attributes, go to Dashboards Metadata.