Perspective Alarm Status Display newest alarm index

Hi there,

I am wondering if there is a certain rule how Alarm Status Display items are indexed.
At first, I thought index[-1] would give me the newest alarm in the list but I was wrong. Index[0] doesn’t give me the oldest either.
Btw, I query the ActiveUnacked.

Is there a way to get the index of the newest item? or is it possible at all?


This seems like an XY problem. Why are you trying to determine the index (in the table?) of a particular alarm - what’s your actual goal?

I try to display the latest/newest alarm on a different view in a single-line field.

I would run system.alarm.queryStatus() periodically in a gateway tag using runScript.

That is what I already use.
I ended up sorting the alarms by EventTime then [-1] gives the newest in the list - don’t have a better solution yet.