Facility Control

 View Only
  • 1.  Multiple panels with scripted parameters

    Posted 09-05-2017 17:34
    Hi, regarding sharing parameters across a network (JSON) to enable two or more operators on different panels.
    If I create a parameter by scripting in the provider panel, how can I access that parameter in the consumer panel?
    I can only see the parameters I created manually, not those created by scripting.
    Is it possible to see these as well?:

    var paramObject ={
    "oid": ""test",
    "name": "test",
    "readonly": false,
    "type": "INT16",
    "widget": "toggle",
    "constraint":
    {
    "type": "INT_CHOICE",
    "choices": [{
    "name": "off",
    "value": 0
    }, {
    "name": "on",
    "value": 1
    }]
    }
    };

    // Create the new parameter
    params.createParam(paramObject);

    // This parameter can be accessed in the provider panel, but is not visible/not existing in the consumer panel. The other manually created parameters are working as expected.

    Regards,
    Erland


  • 2.  RE: Multiple panels with scripted parameters

    Posted 09-07-2017 19:14
    Dynamically-created parameters cannot presently be exposed this way. The issue is that there is a hierarchy to custom panels. Permanently-created parameters live at the root of the hierarchy but dynamically-created parameters are forced to live at least one level down from there. The OGP-JSON server we create can currently only see/share the parameters at the root.

    James
    #DashBoard