To add an alarm list Genie ("alarmlist" or "alarmlist_v") to a page:
- Open a page in Graphics Builder.
- Click the Paste Genie button in the objects toolbox.
Or, select Paste Genie from the Edit menu.
- In the Paste Genie dialog, select the Library "sa_controls".
- Select one of the following from the Genie list and click OK.
- alarmlist = Alarm List Genie
- alarmlist_v = Alarm List - Vertical Genie
The Genie is pasted onto the graphics page. A dialog box will open, prompting you to configure the parameters for the Genie.
The Alarm List Vertical Genie dialog box will show the AN parameter. The number that is displayed is AN value that was automatically applied to the Genie when it was pasted on the page.
The Alarm List Genie dialog box will include some additional parameters that enable runtime interaction with the header row. By default, the OnColumnReorderedFunction will display "ArrayView_SetFormat()". This is a system function that allows an operator to rearrange the header row columns at runtime. The other parameters can be left blank.
- Click OK to close the parameters dialog box.
To load alarm data into the list at runtime, you need to call the AlarmListCreate Cicode function as an On Page Entry command in the Page Properties dialog.
- In Graphics Builder, right-click on the page and select Page Properties from the menu that appears.
Or:
From the File menu, select Properties.
The Page Properties dialog box will appear.
- On the Events tab, select the On page entry event.
- In the On page entry command field, configure the AlarmListCreate Cicode function as required.
The value specified for the nAN argument needs to match the AN number applied to the alarm list Genie.
- On the Events tab, select the On page exit event.
- In the On page exit command field, configure the AlarmListDestroy Cicode function. For example,
AlarmListDestroy(56);
- Click OK, and Save your page.
You can now run your project and view the alarms list.