Reporting List Widget
Definition
The Reporting List Widget is aimed at displaying Reporting search results as a list.
Configuration
Properties
Property | Type | Mandatory | Description | Values (default values in bold) |
---|---|---|---|---|
type |
| YES | The type of the widget in XML configuration | - |
reportingId |
| YES | The id of a ReportingObjectConfiguration which this widget will target | - |
associations |
| NO | Same as the associations described for ReportingWIdget | - |
actions |
| NO | Similar to any List type widget | - |
allowExport |
| NO | Allows to define if the export of the results data is allowed or not. | true,false |
displayOnInit |
| NO | If true, the chart will be displayed initially without requiring to click the "Apply" button of the criteria panel first. | true,false |
triggerAssociationOnRowClick |
| NO | If true, clicking a row will trigger an association by transfering the row as criteria. Only the criteria that has been declared in the association will be passed. | true,false |
columns |
| YES | Similar to any List type widget | - |
| YES | ReportingWidget | - | |
renderingRule |
| NO | This rule will be applied for each document of the results and allows to transform the content. It MUST return a Map of String to Object. Example:
XML
| - |
Display conditions
Actions of a Reporting List Widget can be conditional like in any Search/List type of widgets. However, unlike a traditional list where the condition is most likely dependent on the OBJECT context, one typically want to access the current document of the row holding the action. This context is available as REPORTING_DOCUMENT.
<displayCondition>
<script><![CDATA[return ((REPORTING_DOCUMENT.identity as Map).firstName as String).equals("John")]]></script>
</displayCondition>