TabAlarm_InitDspLast - sxw include template

in the csv include or sxw tab style include, there is a table genie setup in the normal template to display the last alarms.

we need to show the last alarms by priority so added the following parameter in the Alarm section of citect.ini to display the last alarms wrt to priorities.

[Alarm]

LastAlarmPriorities = 10

but the alarm still continues to be displayed based on recent alarms.  please advise what is the correct setting to use?

  • further to the above... i found the alarm table genie invoking a call to TabAlmTable_InitDspLast in the initailsation function.
    which comes with the include project

    INT FUNCTION TabAlmTable_InitDspLast(STRING listID, INT listAN, STRING formatName = "")
    // Check arguments
    IF ("" = formatName) THEN
    formatName = "LastAlarm";
    END

    // Set display attributes
    IF (PageInfo(7) = "0") THEN
    _TabAlarm_DspLast_ApplyParams(listAN);
    TabAlarm_SetFormatStringDefault(listAN, _TabAlarm_DspLast_GetParam("LastAlarmFmt"));
    END

    RETURN TabAlmTable_InitDsp(listID, listAN, formatName);
    END


    however i noted the _TabAlarm_DspLast_ApplyParams doesn't seem to be called. is the PageInfo(7) = 0 really necessary? if the alarm genie is located in the normal template. wouldn't the pageinfo(7) not make sense since the count will always be > 0?
    i commented out that conditional statement and found the parameters being applied which mean the LastAlarmPriorities that i mentioned in the previous post came into effect. can someone please advise ?