Monday, 25 October 2010

NextReports : Alarms

NextReports Server dashboards can contain charts and tables. Tables are a specific type of reports with a column header and data. In next release, dashboards will contain also alarms.

An alarm is also a specific type of report created with NextReports Designer. Such report they must have two cells in the detail band:

 
  • First cell is a column (status) with formatting conditions for background color.
  • Second cell is an expression "if .. else .." which returns a different message for every known status (column value)
On the server, first cell is drawn as a status led which will have the color the same with cell background color. The message will be shown next to the image.

For example, the formatting conditions for the first cell can be :



This image shows that for a value <= 0 , background color is red, otherwise background color is green. Expression in the second cell is defined as :

if ( $C_NUMBER_PC <= 0 ) {
    "Alarm!";
} else {
    "Ok";
}

On the server, the result will be like this :


To publish a report to server as an alarm, a new property called 'alarm' was added.


No comments:

Post a comment