:_alert_hdl.._act_state_color

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
AMRPatricio
Posts:61
Joined: Mon Dec 12, 2016 4:43 pm

:_alert_hdl.._act_state_color

Post by AMRPatricio »

Hi All,
I wonder if someone can help me out with the following issue:

I have my alert class defined as the picture in attachment. When I then do a dpconnect to “…:_alert_hdl.._act_state_color”, I obtained the following results:
[ol][/ol]["display color:"]["red"] when the alert is active , which is what I expected.
[ol][/ol]["display color:"][""], when alert is not active(no alert status). I would expect to receive “black” instead.

Where am I wrong on my thoughts?
Thanks in advance,
    Image
    Attachments
    _alert.png

    mkerk
    Posts:75
    Joined: Wed Oct 20, 2010 12:25 pm

    Re: :_alert_hdl.._act_state_color

    Post by mkerk »

    "_alert_hdl.._act_state_color" returns the background color of the current highest pending alert .
    If there is no alert (= no pending alert), then this attribute is am empty string.

    BR,
    Mousser

    AMRPatricio
    Posts:61
    Joined: Mon Dec 12, 2016 4:43 pm

    Re: :_alert_hdl.._act_state_color

    Post by AMRPatricio »

    Hi Mousser,

    Thank you for your comment.

    I understand what you are saying, which was my first thought. But I then a tried to do similar exercise with "_act_state_text" and the results are:

    ["display text:"][1
    WCCOAui2:LANG:10005 "IED comms Fail"

    ["display text:"][1
    WCCOAui2:LANG:10005 "IED comms Healthy"

    Seems like it works even if no alert is active.

    Looking on the "help" section(Prt Scr), I would not expect different behaviors btw "_act_state_text" and .._act_state_color"?



    Thanks, Image
    Attachments
    Untitled.png

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

    Re: :_alert_hdl.._act_state_color

    Post by leoknipp »

    Can you please describe what you want to do with the alert information.
    Maybe using a dpConnect for the _alert_hdl attributes is the wrong approach in that case.

    Best Regards
    Leopold Knipp
    Senior Support Specialist

    AMRPatricio
    Posts:61
    Joined: Mon Dec 12, 2016 4:43 pm

    Re: :_alert_hdl.._act_state_color

    Post by AMRPatricio »

    Hi Leopold,
    I want basically represent the alarm status with background color in accordance. See please attached.

    Of course I can obtain similar result using the original value and then couple "setValue"....but I would have thought using the alert attributes as all the information I need is there and updated.

    Thanks, Image
    Attachments
    alarm.png

    5 posts • Page 1 of 1