Why the acknowledge of a Sum alert button is unavailable

Discussion about recent product features & solutions!
7 posts • Page 1 of 1
Marie-Eve
Posts:4
Joined: Mon Dec 08, 2014 10:37 am

Why the acknowledge of a Sum alert button is unavailable

Post by Marie-Eve »

I use the panel object: PT_sum2 to open a panel and display the states of the alarms contained in this panel.
I would acknowledge the alarms contained in the panel without opening the panel. Is it possible ?
I see in the object PT_sum2 that the event "acknowledge" is implemented and make a call to "std_quittScript" which send an acknowledge to the three panel alarms.
I would know why this acknowledge is not propagated to all the dp contained in the panel.
Is it due to a bad setting ? if yes, I would know the parameters I have to set or if it is no, is it possible to propagate this acknowledge by using getConfirmDps ?
Thanks for informations.

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Why the acknowledge of a Sum alert button is unavailable

Post by fmulder »

I believe that the script that you mention acknowledges the alarms for the shapes that you find on a panel That is : you have to make some shapes with an alertAcknowledge 'script'. Then put these shapes on the panel.
This will only work when the panel is currently visible.
Also, you can not mess with module-names. The button expects the panel to have a certain fixed module name. When you make your own basepanel, then you'll break this mechanism.
Hope this helps !

good luck

Frenk

Marie-Eve
Posts:4
Joined: Mon Dec 08, 2014 10:37 am

Re: Why the acknowledge of a Sum alert button is unavailable

Post by Marie-Eve »

Thanks,
yes, it works when I open the associated panels and when the panel is a child panel not a root panel.
So, Iif I want to acknowledge the data contained in the panel without opening the panel I must use the getConfirmDps or may I have another possibility ?
thanks for answer.

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Why the acknowledge of a Sum alert button is unavailable

Post by fmulder »

The getConfirmDps() will actually scan the 'source' of your panel and any embedded sub-panels. This might be an expensive function and I would not do it.

The topology has already done this when you added a panel to it. What I would do is:

* Make sure you're panel is part of the panel topology
* The GEDI will make a _SumAlertPanel datapoint for each of the symbols on your panel
* When you look in the _SumAlertPanel then you'll find warning, alert and danger. These sum-alerts will have a list of daapoints elements that you could dpGet()
* Do a dpGet() to get the list of elements in this datapoint element and do an ack for each of them

The list of dp's can be 'get' via:

dpGet( "_mp__SumAlertPanel.Warning:_alert_hdl.._dp_list", dstrMyList )

Good luck !

Marie-Eve
Posts:4
Joined: Mon Dec 08, 2014 10:37 am

Re: Why the acknowledge of a Sum alert button is unavailable

Post by Marie-Eve »

thanks
I thought that the getConfirmDps only returns the list of data contained in the panels and don't scan the 'source'. So I will use the dpget function.
Thanks

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Why the acknowledge of a Sum alert button is unavailable

Post by leoknipp »

Hello,

please note that acknowledging alerts which are not visible at the moment can be dangerous.
Then you might acknowledge alerts which the user has never noticed.

Therefore normally the common confirm functionality only acknowledges alerts in panels which are opened at the moment.

Best Regards
Leopold Knipp
Senior Support Specialist

Marie-Eve
Posts:4
Joined: Mon Dec 08, 2014 10:37 am

Re: Why the acknowledge of a Sum alert button is unavailable

Post by Marie-Eve »

yes I know that the common confirm functionality is to acknowledge only visible alerts, but perhaps we need to do this. It is being discussed. Thanks

7 posts • Page 1 of 1