DX NetOps

 View Only
  • 1.  Event Procedure for dynamic alarm title

    Posted Jul 27, 2012 01:55 PM
    I've trying to combine two event variables and use them as the alarm title.
    Here's my procedure:

    0xfff0124e E 20 P "CreateEventWithVariables ( { C CURRENT_MODEL }, { H 0xfff0124a }, SetEventVariable ( GetEventVariableList(), { H 0x12b4c }, Append ( GetEventVariable({U 2}), Append ( { S \" - \" }, GetEventVariable ({U 1})))))"

    The event 0xfff0124a is getting created with the event variables from 0xfff0124e, but the alarm title is not changing. I'm displaying the resulting title in the alarm details using "Alarm Title = {S 76620}" and it is blank.
    There are no error messages being logged via the log file defined by the event_disp_error_file parameter in .vnmrc.

    Any ideas on what I'm missing?

    Thanx
    Tim


  • 2.  RE: Event Procedure for dynamic alarm title
    Best Answer

    Posted Aug 01, 2012 10:08 AM
    Tim,

    you need to convert the variables you are retrieving into a string.

    example: ToString(GetEventVariable({U 8}))


    Your line should be something like this (check it first for the parenthesis):

    0xfff0124e E 20 P "CreateEventWithVariables ( { C CURRENT_MODEL }, { H 0xfff0124a }, SetEventVariable ( GetEventVariableList(), { H 0x12b4c }, Append ( ToString(GetEventVariable({U 2})), Append ( { S \" - \" }, ToString(GetEventVariable ({U 1}))))))"


    Cheers,
    Daniel


  • 3.  RE: Event Procedure for dynamic alarm title

    Posted Aug 01, 2012 12:29 PM
    Daniel

    That was it!
    Thanks for the assistance.

    Tim