Facility Control

 View Only
  • 1.  Adding Strings in Dashboard

    Posted 02-07-2017 03:53
    Hello,
    I'm looking to add the values of 2 strings into a third parameter/label that I can then send off to XPression.. In my example, one parameter has "Top" and the second has the inning number. I tried using the concat method but I wasn't able to get it to work. SO: Inning Status + Inning Numner = Inning Total (plus "Inning" for good measure).

    Thanks!
    Brian


  • 2.  RE: Adding Strings in Dashboard

    Posted 02-10-2017 12:16

    This should update a "output" parameter each time you change either "paramA" or "paramB":

    <ogscript element="0" handles="onchange" oid="paramA, paramB">
        params.setValue('output', 0, params.getValue('paramA', 0) + params.getValue('paramB', 0) + "Inning")
    </ogscript>

    #DashBoard