Facility Control

 View Only
  • 1.  Array of Panel parameters

    Posted 01-21-2019 16:36
    Is there a way to cycle through the params in a particular grid/panel file? I'd like to go through and set the stream to false on all but like 20 of 200 params. I'm ok with doing this in ogscript or some other method....

    Thanks!


  • 2.  RE: Array of Panel parameters

    Posted 01-21-2019 19:06
    Hi @bgreen965 ,
    There is a way to programmatically-set the streaming state of a parameter: params.getParam(OID, index).setStream(false);. This will not be persisted to the panel's XML until/unless the parameter's value is changed.

    There is not presently a way to list/iterate over the full list of parameters in a custom panel. You may want to use a text editor and replace '
    James
    #DashBoard


  • 3.  RE: Array of Panel parameters

    Posted 01-21-2019 19:50
    Thanks James. That was kind of my thinking, edit the xml, I just wanted to make sure there wasn't another way to get a list of all the params (maybe via a java command).
    #DashBoard