Hi,
I'd like to use an array of tags and order it by different characteristics in script (ex. the tags with an active alarm first).
I think the best way to achieve this is by using the function GetTagList then sort that array. Unfortunately GetTagList only return an array of tag names so I can't access the tags properties. In order to sort them I would need a function that return a tag property.
I also tried to get the list of alarm tags thinking I could use that list to see which tag have active alarms but using "Alarm" as a tagType isn't working (\GetTagList("CommunAncestorName"\ShortName, TRUE, 0, "*", "Alarm" ); )
Is there a solution for my problem?
Thank you
Hi,
I'd like to use an array of tags and order it by different characteristics in script (ex. the tags with an active alarm first).
I think the best way to achieve this is by using the function GetTagList then sort that array. Unfortunately GetTagList only return an array of tag names so I can't access the tags properties. In order to sort them I would need a function that return a tag property.
I also tried to get the list of alarm tags thinking I could use that list to see which tag have active alarms but using "Alarm" as a tagType isn't working (\GetTagList("CommunAncestorName"\ShortName, TRUE, 0, "*", "Alarm" ); )
Is there a solution for my problem?
Thank you
edited Feb 6 '18 at 1:31 pm