Hey y'all
So, my company uses an RTU which collects binary inputs from multiple devices connected to it and uses that to signify when the connected systems are in alarm. When their binary state changes it triggers a preset alarm. The following is the custom Poller table on the node which contains the alarms and which physical I/O ports they're related to.
_____________________________________________________________________________

_____________________________________________________________________________
So basically, if contact point 1.2.1 is high then the alarm triggers. (A state of 2 is high 1 is low, idk why it's not 1 and 0)
My issue is, I'm trying to get the alert names into a modern dashboard, but when the alerts are triggered, the alert description is handled by some SQL code so when I try and pull through the alert name it pulls through the SQL code which is useless. However, I can get the contact point through so I'm trying to figure out how to join the table to access the alarm name of rows where the contact point matches. In other words, I'm trying to find the alarm which is related to the specific contact point in the custom poller table.
At the moment, to pull through the contact point I'm using the following code:
SELECT
[AlertObjects].EntityCaption
FROM Orion.AlertObjects AS [AlertObjects]
WHERE [AlertObjects].AlertActive.AlertActiveID > 0 AND [AlertObjects].Node.NodeName LIKE '--'
I've tried a LOT of different ways to try and pull the alarm name through, so I'm fairly sure I can't with just using navigation properties. So I thought joining the poller table and the high contact points I could retrieve the alarm name. I just can't figure out how to do this.
Thanks !!