Facility Control

 View Only
  • 1.  onchange with Ultrix?

    Posted 02-20-2019 07:22
    I've got this parameter on my Ultrix that I'd like to monitor for changes. How do I register an onchange event against that parameter?

    params.getParam("Ultrix.1", 'params.statusByDestination.58.inputstatus',0)

    Thanks!



  • 2.  RE: onchange with Ultrix?

    Posted 02-21-2019 16:02

    There are a few choices here:
    Inside of your Ultrix context, you can put script:

    <ogscript handles="onchange" oid="params.statusByDestination.58.inputstatus">
         ogscript.debug("MY VALUE IS: " + this.getValue());
    </ogscript>

    Or, if you already have the param object (as in your example code), you can programmatically-add a change handler:

    function handleChange(parameter)
    {
    ogscript.debug('MY VALUE IS ' + parameter.getValue());
    }

    params.getParam('params.statusByDestination.58.inputstatus', 0).addParamListener(handleChange);


    #DashBoard


  • 3.  RE: onchange with Ultrix?

    Posted 07-22-2025 11:34

    James,

    Is it possible to handle any destination change, not just a single destination?
    I have tried the following but it does not trigger when crosspoints are changed.

    <ogscript handles="onchange" oid="params.statusByDestination">ogscript.debug('crosspoints changed!');</ogscript>



    ------------------------------
    Richard Hills
    ------------------------------



  • 4.  RE: onchange with Ultrix?

    Posted 03-05-2019 11:21
    Hello James
    Please can you provide code of whole panel for example?
    i Tried to to put:
    ogscript.debug("MY VALUE IS: " + this.getValue()); inside my Ultrix context, but it does't work and nothing happens on debug window while i change source for destination 58.

    Thanks,

    Alex.
    #DashBoard


  • 5.  RE: onchange with Ultrix?

    Posted 03-26-2019 16:09
    Do somebody have working solution for that? It would really help me..
    Thanks!
    #DashBoard


  • 6.  RE: onchange with Ultrix?

    Posted 03-26-2019 17:26
    Hi @alex@reshet.tv
    Can you post your panel (or part of it) so I can verify where you are putting the ogScript calls?

    Also, which version of DashBoard are you running?

    James

    #DashBoard


  • 7.  RE: onchange with Ultrix?

    Posted 03-27-2019 08:46

    Hello James,

    I found my mistake. Here is my code:

    <?xml version="1.0" encoding="UTF-8"?><abs contexttype="opengear" id="_top">
    <meta>
    <context contexttype="opengear" id="Ultriscape.1" objectid="Ultrix-50186441013&lt;br&gt;Slot 1&lt;br&gt;Ultriscape" objecttype="Ultriscape"/>
    <context contexttype="opengear" id="Ultrix.1" objectid="Ultrix-50186441013&lt;br&gt;Slot 0&lt;br&gt;Ultrix" objecttype="Ultrix">
    <ogscript handles="onchange" oid="params.statusByDestination.21.inputstatus">og script.debug("MY VALUE IS: " + this.getValue());</ogscript>
    </context>
    </meta>
    </abs>

     

    So, i found what was a problem - its +1 shift, ultrix counts dest from zero, and i looked at dest list which starts from 1. So, its was work from the beginning, i just looked to wrong dest.

    Thank you very much.

    Alex.


    #DashBoard


  • 8.  RE: onchange with Ultrix?

    Posted 10-17-2019 16:53

    Hello again, James
    Is there any chance to got this onchange reports without dashboard? In terminal instead of an dashboard, for example?
    Thanks.


    #DashBoard