Genie Name: alarmlist
Genie Library: sa_controls
System Project: SA_Controls
The Alarm List Genie (named "alarmlist") allows you to place a list of alarms on a graphics page in a pre-defined format with a header row and scroll bars. It is a variation of the Alarm List Vertical Genie, which produces a list with no header row and just a vertical scroll bar.
This Genie can be used with the List Row Genie, which facilitates row selection, a row context menu and row background color.
By default, an alarm list Genie displays the fields configured through the
For further instructions on how to use the Alarm List Genie, see Add an Alarms List to a Page.
Note: You can also use the Citect.ini parameter
Complete the following properties for the Genie in the Genie Properties dialog box.
Select the Genie and double-click on it to view its parameters. The parameters are used as described in the table below:
Parameter |
Description |
---|---|
AN |
This is automatically populated and matches the AN in the Genie Properties dialog box. This cannot be modified. |
OnRightClickFunction |
Allows the user to right-click on the alarms list and perform operations displayed on the context menu. |
OnColumnSelectedFunction |
Allows you to select a column. |
OnColumnReorderedFunction |
Allows you reorder the columns displayed. For example, ArrayView_SetFormat(). |
OnColumnResizedFunction |
Allows you to re-size the columns displayed. |
For the Genie to work at runtime, they require some arrays to be pre-configured before animation begins. In the Page Properties dialog box, Events tab, select the following event options and specify the required Cicode command.
Parameter |
Example |
Comments |
---|---|---|
On Page Entry |
_Array View_Initialize();
|
This code will create the Alarm list called "alarmlist" based on the parameters specified in the |
On Page Exit |
AlarmListDestroy(DspGetAnFromName("alarmlist"))
|
This code will destroy the alarm list array when the user exits the page. |
See also
Published June 2018