DX NetOps

 View Only
  • 1.  Dynamic Device Name in Event Procedure

    Posted Apr 13, 2016 06:56 AM

    Hi all,

     

    I'm using the following event procedure to display alarms with a dynamic title. I would also like the Source device name to be dynamic, determined by one of the variables (U19 below). The attribute for this, I believe, is 0x1006e.

    Using the Tuesday Tip here, I'm using WriteAttribute to change the Device name, but I suspect my syntax may be incorrect.

     

    0xfff00800 P " CreateEventWithVariables( { C CURRENT_MODEL }, { H 0xfff00801 },SetEventVariable(GetEventVariableList(),{ H 0x00012b4c },Append ( Append ( Append ( { S \"\" }, GetEventVariable( {U 5} ) ), { S \" - Affecting: \" } ) ,GetEventVariable( {U 19} ) ) ), WriteAttribute( { C CURRENT_MODEL }, { H 0x1006e }, GetEventVariable( { U 19 } ) ) )"

     

    Can anyone point me in the right direction?

     

    Thank you!

    M.



  • 2.  Re: Dynamic Device Name in Event Procedure
    Best Answer

    Posted Apr 13, 2016 08:45 AM

    Hi M ,

     

    Could you please try this ?

     

     

     

    0xfff00800 E 50 P " CreateEventWithVariables({ C CURRENT_MODEL},{ H 0xfff00801},SetEventVariable(GetEventVariableList(),{U 1},GetRegexp(GetEventVariable({U 76620}),Append(Append(Append({S\"\"},GetEventVariable({U 5})),{S\" - Affecting: \"}),GetEventVariable({U 19}))),WriteAttribute({ C CURRENT_MODEL},{ H 0x1006e }, GetEventVariable( { U 19 } ) ) )"

     

    Thanks

    HK