Get property of advanced alarm tag

I have an advanced alarm tag and am trying to get its configured description, but can't find the right function to call... I've looked all throughout the Alarm cicode functions category, but they all deal with reading stuff when displaying an alarm list via ANs.

I need something like:

`AlarmGetProperty("AlarmTag", "Description")`

For context, this is for displaying alarms on a device popup specific to that device. I've given up trying to use Citect's ridiculously complicated alarm filtering functions... I have enough hair lost to Citect over the years.

Answer: Use alarm properties, e.g. AlarmTag.Name, AlarmTag.Name, AlarmTag.On, etc.

Parents
  • Hi Nick,

    I think in your case the best way to do this is by creating a function that populates the alarm information in your popup using the AlmBrowse* functions. You would need to call AlmBrowseOpen with a filter that suits your needs (for example "EQUIPMENT=MyEquip").
    Then loop through the returned recordset and get the configured comment by calling AlmBrowseGetField and specify "ALMCOMMENT" as field name. Do not use "COMMENT" as field name because this will return the user comment, not the configured comment.
Reply
  • Hi Nick,

    I think in your case the best way to do this is by creating a function that populates the alarm information in your popup using the AlmBrowse* functions. You would need to call AlmBrowseOpen with a filter that suits your needs (for example "EQUIPMENT=MyEquip").
    Then loop through the returned recordset and get the configured comment by calling AlmBrowseGetField and specify "ALMCOMMENT" as field name. Do not use "COMMENT" as field name because this will return the user comment, not the configured comment.
Children
No Data