alertConnect() - example?

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
vedadramovic
Posts:121
Joined: Mon Apr 07, 2014 10:36 am

alertConnect() - example?

Post by vedadramovic »

Is there any example of alertConnect() call and its callback function?
I need make some changes on alert came and went/acknowledged.
Thank in advance.
Vedad

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

Re: alertConnect() - example?

Post by leoknipp »

Hello,

if you want to react on changes of _alert_hdl-attributes you have to use the function dpQueryConnectSingle() or dpQueryConnectAll().
At the query statement you can filter for only those dp-elements/alerts and attributes which shall be taken into account. An alertConnect() always makes a connect to all alerts and therefore it is recommended not to use this function.

For details concerning the query functions please have a look at the online help.

Best Regards
Leopold Knipp
Senior Support Specialist

vedadramovic
Posts:121
Joined: Mon Apr 07, 2014 10:36 am

Re: alertConnect() - example?

Post by vedadramovic »

Thank you Leopold very much.

3 posts • Page 1 of 1