Facility Control

 View Only
  • 1.  Roster Dropdown in Dashboard

    Posted 10-01-2014 17:37
    Hi there, I'm very new to dashboard. We are creating a template in Xpression for live Roller Derby events, and are using dashboard to drive the score graphic.

    That's all working fine, but now we would also like the option to drive lower thirds from Dashboard as well. Specifically, the head-to-head graphic that will display 2 players from the opposing teams before each match.

    There is very little time between matches, so typing the names into a text input widget each time is out of the question. Even typing jersey numbers is a bit tricky, because in Roller Derby, the numbers aren't straight integers. (Players could have the number '34DD' for example)

    Here is my ideal scenario:

    -we have two tabs: "Teams" and "Score"

    - In the "teams" tab, We have data tables where operators can input the entire rosters of each team before the game

    - In the "score" tab, along with the regular scores and timer widgets, we have 2 drop-down widgets that would reference those tables; operators could simply choose the opposing players from the drop-downs

    So far, I've got everything except the drop-downs. Is it possible to reference a table this way?

    Any help would be appreciated, thanks!


  • 2.  RE: Roster Dropdown in Dashboard

    Posted 10-01-2014 17:52
    Hi,

    Yes, you can put some arrays on screen that list the jersey 'numbers', 'player name' and any other items you want for that.

    You would also have a dropdown, or a set of buttons, or a popup with buttons etc.. that are driven from those arrays.

    The trick is a piece of script that updates the 'constraint' for those dropdowns, button lists etc..

    If you can e-mail me your current panel I'll put a quick example on this for you.

    (and I'll update the example script here in this thread later).

    E-mail me your .grid file to: tenglish@rossvideo.com

    Sounds like fun!

    First Roller Derby project I'll have looked at. :-)

    Troy.

    #DashBoard


  • 3.  RE: Roster Dropdown in Dashboard

    Posted 10-01-2014 22:19
    Fantastic, thanks very much! Sent :)

    #DashBoard


  • 4.  RE: Roster Dropdown in Dashboard

    Posted 03-02-2017 18:53
    Hi @troyenglish and @bambooshoots !

    I'm trying to achieve the same thing, I have a array of player names in a tablewidget and I'd like a second parameter as a dropdown which reads those values so I easily can select which player from the squad I want to send to XPression. Could you post that part of the script or help me to get on the correct path?

    Thanks.
    #DashBoard


  • 5.  RE: Roster Dropdown in Dashboard

    Posted 03-02-2017 19:29

    Hi @tobiaswold
    This should get you what you are looking for.

    <abs contexttype="opengear" style="">
       <meta>
          <params>
             <param access="1" constrainttype="STRING_CHOICE" name="Table" oid="params.table" precision="0" type="INT16" value="0" widget="table">
                <constraint>params.array</constraint>
             </param>
             <param access="1" maxlength="0" name="Array" oid="params.array" precision="0" type="STRING_ARRAY" value="a;b;c;d" widget="text">
                <value>a</value>
                <value>b</value>
                <value>c</value>
                <value>d</value>
             </param>
             <param access="1" constrainttype="INT_CHOICE" name="Dropdown" oid="params.combo" precision="0" type="INT16" value="0" widget="combo">
                <constraint key="0">a</constraint>
                <constraint key="1">b</constraint>
                <constraint key="2">c</constraint>
                <constraint key="3">d</constraint>
             </param>
          </params>
       </meta>
       <param expand="true" height="264" left="6" oid="params.table" showlabel="false" top="5" width="205"/>
       <param expand="true" height="43" left="329" oid="params.combo" showlabel="false" top="24" width="281">
          <task tasktype="ogscript">params.setValue('params.table', 0, this.getValue());</task>
       </param>
       <button buttontype="push" height="96" left="221" name="Go!" top="26" width="97">
          <task tasktype="ogscript">var newValues = params.getAllValues('params.array');
    var constraint = params.createIntChoiceConstraint(newValues);
    
    params.replaceConstraint('params.combo', constraint);</task>
       </button>
       <simplegrid height="42" left="4" rows="1" top="278" width="205">
          <button buttontype="push" name="Add">
             <task tasktype="ogscript">var elementCount = params.getElementCount('params.array');
    params.setValue('params.array', elementCount, '');
    params.setValue('params.table', 0, elementCount);</task>
          </button>
          <button buttontype="push" name="Remove">
             <task tasktype="ogscript">var selection = params.getValue('params.table', 0);
    var elemCount = params.getElementCount('params.array');
    if (selection &gt;= 0 &amp;&amp; selection &lt; elemCount &amp;&amp; elemCount &gt; 1)
    {
       params.getParam('params.array', selection).remove();
    }
    else if (elemCount == 1)
    {
       params.setValue('params.array', 0, '');
    }
    
    elemCount = params.getElementCount('params.array');
    if (selection &gt;= elemCount)
    {
       params.setValue('params.table', 0, params.getElementCount('params.array') - 1);
    }
    </task>
          </button>
       </simplegrid>
    </abs>

    #DashBoard


  • 6.  RE: Roster Dropdown in Dashboard

    Posted 08-12-2019 11:18

    Is there any way to make the values from the array which are sent as constraint values to the INT16 param to be sent in an alphabetical order? 


    #DashBoard