Facility Control

 View Only
  • 1.  Two Interlinked DashBoards

    Posted 01-28-2019 19:55
    I've been following the Multiple DashBoards thread here:
    https://discussions.rossvideo.com/forum/default-forum-gc1/dashboard-gc43/12006-multiple-dashboards
    but now i feel like I need to finally post my own thread to get a few things straight that I'm having problems with.
    My project: two DashBoards on two separate computers.
    Computer1-Stats Station-responsible for keeping stats-This station is the data provider.
    Computer2-Graphics Station-responsible for putting all graphics live on air, from stats, BUT also a lot more, like general supers without stats, score, etc.-This station is the data consumer.

    So in the above thread, I have successfully gotten the two stations to interlink. I started with the same panel on both stations, and basically I was able to toggle on/off a button on the Stats/Provider Station and confirm that it's state changed on the Consumer/Graphics Station.

    Question1-As soon as I try to Edit the "Consumer/Graphics Station" Panel, it won't let me add any parameters or parameter related controls. Why is this happening and how do I edit/add more params to this station.

    Question2-I'm worried about having the exact same panels on both stations, bc I don't want the Stats person to accidentally be able to put a graphic on air. Can I delete all the params that do not relate to stats from the "Provider/Stats Station" and still have those params present and operational on the "Consumer/Graphics Station"? If so, how do I differentiate the two types of parameters? Do these two different types of params belong in separate locations other than all under the same params tag?
    Thanks.


  • 2.  RE: Two Interlinked DashBoards

    Posted 01-28-2019 20:37

    Hi rogerj
    Question 1:
    If you wish to have parameters private to your 'consumer panel', you'll want to either create a dedicated section inside of your consumer panel to hold the ones from your provider panel or use a <context/> tag to point to the provider panel.

    Here is an example based on the previous post that uses this technique:

    <abs contexttype="opengear">
    <meta>
    <context id="remote-context" contexttype="opengear" objectid="localhost:5555&lt;br&gt;Slot 0&lt;br&gt;My Data Source" objecttype="My Data Source"/>
    </meta>
    <param contextid="remote-context" expand="true" height="60" left="20" oid="Parameter_One" top="20" width="360"/>
    <param contextid="remote-context" expand="true" height="60" left="20" oid="Parameter_Two" top="100" width="360"/>
    </abs>

    Question 2:
    Once the parameter is created in the provider panel, it does not have to be present in the user interface in order to access it on the consumer panel. You can delete any parameters you want from the provider panel's UI as long as they are in the <params/> tag.

    Hope this helps

    James


    #DashBoard


  • 3.  RE: Two Interlinked DashBoards

    Posted 10-02-2019 16:41

    I've got this working, except I can't seem to use certain javascript functions on the "Data Consumer" panel with parameters from the "Data Provider" panel.

    Here is my code:

    Data Provider:

    <abs contexttype="opengear" jsonport="####">
       <meta>
          <params>
    <param access="1" constrainttype="INT_NULL" name="Away_PL1_2ptAttempts" oid="Away_PL1_2ptAttempts" type="INT32" value="7" widget="default"/> <param access="1" maxlength="0" name="Device Name" oid="0x105" type="STRING" value="My Data Source" widget="default"/> </params> </meta> <param expand="true" height="60" left="20" oid="Away_PL1_2ptAttempts" top="20" width="360"/> </abs>

    Data Consumer:

    <abs contexttype="opengear" dblinqport="####">
    <lookup id="hosts">
    <entry key="Xpression.host">###.###.#.#</entry>
    <entry key="Xpression.port">####</entry>
    <entry key="CorrectVision.host">###.###.#.#</entry>
    <entry key="CorrectVision.port">####</entry>
    </lookup>
    <meta>
    <context contexttype="opengear" id="remote-context" objectid="##.###.#.##:####&lt;br&gt;Slot 0&lt;br&gt;My Data Source" objecttype="My Data Source"/>
    <params>

    <param access="1" maxlength="0" name="statPreview" oid="statPreview" type="STRING" value="" widget="label"/>

    </meta>
    </param>

    <button buttontype="toggle" height="36" id="Stats_Basketball_Away_Take" left="12" name="Stats" style="bg#305FA1;t:bg#2E5C9D;" top="137" width="70">
    <task tasktype="ogscript">

    var quickVar = params.getValue('param_Device.1Away_PL1_2ptAttempts (Away_PL1_2ptAttempts)', [0]);
    params.setValue(statPreview, quickVar);</task>
    </button>

    <param expand="true" height="23" left="880" name="0" oid="statPreview" top="675" width="81"/>

    </abs>


    #DashBoard


  • 4.  RE: Two Interlinked DashBoards

    Posted 10-02-2019 17:22

    To get a parameter out of your remote device's context, you will want to use:

    params.getParam('remote-context', 'Away_PL1_2ptAttempts', 0).getValue();

    The signature means:

    params.getParam(ID_ATTRIBUTE_OF_CONTEXT_TAG, OID, INDEX)

    The object returns has a number of helpful functions such as:

    getValue()

    getValueAt(INDEX)

    setValue(NEW_VALUE)

    setValueAt(INDEX, NEW_VALUE)

    getValueAsString()

    getElementCount()

    ...

     

     

     


    #DashBoard


  • 5.  RE: Two Interlinked DashBoards

    Posted 10-02-2019 18:18

    awesome! you're the code ninja, James. thanks.


    #DashBoard


  • 6.  RE: Two Interlinked DashBoards

    Posted 10-25-2023 12:29

    Opening up an oldie, I was looking into interlinking panels and wanted to reference the post at the top of this

    https://discussions.rossvideo.com/forum/default-forum-gc1/dashboard-gc43/12006-multiple-dashboards

    But that doesn't seem to exist anymore. Any chance of getting this original post back? 



    ------------------------------
    Mark Macklin
    ------------------------------



  • 7.  RE: Two Interlinked DashBoards

    Posted 10-25-2023 14:11

    Hi Mark,

    I believe the original post can be found here:
    https://rossvideo.community/communities/community-home/digestviewer/viewthread?GroupId=205&MID=22789&CommunityKey=94781415-eb0f-4f9a-b891-c44d41d870c8&ReturnUrl=%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d94781415-eb0f-4f9a-b891-c44d41d870c8

    Cheers,



    ------------------------------
    Michael Quach
    ------------------------------