Panel | ||
---|---|---|
| ||
Dashboard Components DocumentationSearch pages are the xml files that contain database query definitions. To refer to a search page from the code the <searchpage_folder>.<searchpage_filename> is usedDashboard components offer a visual representation of data to the user. They consist of an SQL statement, which if needed, can be dynamically altered by adding certain filters and criteria.
|
Attributes
Name | Description | Value |
---|---|---|
searchcaption | A title which is displayed on the screen. | Any |
sqltype | The type of SQL script. | SELECT or SELECT DISTINCT |
tables | A list of tables to be used in the joins and fields sections. | Any table name that exists in the database |
joins | A list of elements to join the tables. | Join |
fields | The fields that are used in the select and where clauses. | Field Item |
wheregroups | A wheregroup groups together where conditions in the search file. | Wheregroup |
groupby | Collects data across multiple records and groups the results by one or more fields. | Any field name |
orderby | Sorts the query result set based on one or more fields. | Order By |
Example
...
title | Search Page |
---|
...
name | The dashboard component name. | Any |
description | The dashboard component description. | Any |
sql | The dashboard component SQL statement (In the case the SQL is very simple). | Any valid SQL statement |
ejb | The ejb name. | Any |
method | The method to call from the ejb. | Any |
type | The dashboard component type. | pie, stack, bar, summary |
valuelabels | The label values that the group by elements will have. | <label_name>:<label_value>, ejb/<method_name> |
primaryfield | The primary field name. | Any |
primaryfieldlabel | The label that the primary field will have. | Any |
groupbyfield | The group by field name(s). | Any |
groupbyfieldlabel | The label that the group by field will have. | Any |
summarypage | The summary page name to link to. | Any |
orientation | The dashboard component orientation. | vertical, horizontal |
setting | The dashboard component settings. | Settings |
fields | The dashboard component fields. | Fields |
Examples
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|