Ask our Experts
Didn't find what you are looking for? Ask our experts!
Share Your Feedback – Help Us Improve Search on Community! Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately. Click here to take the survey
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-16 06:45 PM . Last Modified: 2023-05-02 11:56 PM
Hi everyone!
I want to accept alarms from an alarm list using a VBScript function. I am not able to get the "cookie" value when selecting the row
'Assume for this purpose that strAlarmSource is fullname
strAlarmSource = Mimic.Layers(strLayerName).Item(strListName).CurrentRowSource
objAlarm = Server.FindObject(strAlarmSource)
objAlarm.Interface.Accept
and then when using the method "objAlarm.Interface.Accept" it would accept all active alarms on that object. Is there any way to select a row in an alarm list and get a reference to the Alarm Instance and not the object or "Alarm Source".
Thank you in advance!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-25 09:44 PM
I think it's a little complicated there.
strAlarmSource = Mimic.Layers(strLayerName).Item(strListName).CurrentRowSource
objAlarm = Server.FindObject(strAlarmSource)
objAlarm.Interface.Accept
The objAlarm item there is really the Alarm Object (CAlarmObject)
And hence the Accept will 'Acknowledges all alarms associated with the object'
So somewhat painfully, you'd ideally want to access the CAlarm itself instead of the Alarm Object.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.