Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 828 Bytes

pivotTable_examples_custom.adoc

File metadata and controls

26 lines (17 loc) · 828 Bytes

Custom Aggregator and Derived Properties

Below is an example of the pivotTable which differs from the example above in the custom aggregator and derived properties added in the Java-controller of the screen.

link:../../../../source/pivot/pivot_table_2.xml[role=include]

The sorting and aggregation functions can be set either in the XML-descriptor or in the Java-controller. In this example JavaScript functions are passed as parameters to the JsFunction class constructor.

Derived properties can be defined in the screen controller as well.

link:../../../../source/pivot/pivot_table_2.java[role=include]

The result:

PivotTable 2
Figure 1. PivotTable with custom aggregation