How it works...

With dashboard view, you can display KPIs with aggregate and formula. You can display multiple views on the same screen. If you look at the definition of the view, you will see that we have added two views: graph at the beginning and pivot at the end. To display the views, you just need to use the <view> tag with the XML reference and the type of view.

We have displayed various KIPs, including the total tasks, the tasks in progress, and the completed tasks, with the <aggregate> tag. This tag will display the aggregated result for the records of the current domain in the search view. In the <aggregate> tag, you can use the optional domain attribute to display aggregates for a particular set of records. By default, the aggregate function displays the count of records, but you can provide a SQL aggregate function using a group_operator attribute, such as avg or max.

Sometimes, it is not possible to display the KPI with <aggregate>; it needs some extra computation. With the help of <formula>, you can define the formula for any KPI. In our example, we have displayed the progress of all tasks and we have used the optional attribute widget to display the value as a percentage.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset