Facility Control

 View Only
  • 1.  Dashboard not calling first selection

    Posted 03-08-2018 20:29

    Hi I have several groups of toggle buttons that will call up graphics from Xpression. The one issue I'm having is whenever the framebuffer is cleared either from the buttons I added or directly from Xpression or a command from a custom control, or when the app is first started, the graphic from the first button does not get called unless I select another button from the group first, then re-select the first one. It's not that big of an annoyance, but one just the same. I've included the code below.

    Thanks

     

    <abs contexttype="opengear" objectid="Graphic Recall.xml" style="bg#dark;">
    <meta>
    <lookup id="hosts">
    <entry key="Harrahs.scriptport">false</entry>
    <entry key="Harrahs.color">-1145302</entry>
    <entry key="Harrahs.port">7788</entry>
    <entry key="Harrahs.host">"10.0.1.25"</entry>
    <entry key="Harrahs.scripthost">false</entry>
    <entry key="Harrahs.devicetype">XPression</entry>
    </lookup>
    </meta>
    <param expand="true" height="73" left="42" oid="Event_Table" precision="0" style="style:toggleButton;t:bg#selectbg;f:bg#dark; " top="77" width="983">
    <task tasktype="ogscript">var Live = 0;
    var Family = 0;
    var No_Racing = 0;
    var Kentucky = 0;
    var Memorial = 0;
    var Belmont = 0;
    var July4th = 0;
    var Labor = 0;

    /*! block id=1000,1001 !*/
    Live = 2001;
    /*! block id=1002,1003 !*/
    Family = 2014;
    /*! block id=1004,1005 !*/
    No_Racing = 2008;
    /*! block id=1006,1007 !*/
    Kentucky = 2009;
    /*! block id=1008,1009 !*/
    Memorial = 2011;
    /*! block id=1010,1011 !*/
    Belmont = 2010;
    /*! block id=1012,1013 !*/
    July4th = 2012;
    /*! block id=1014,1015 !*/
    Labor = 2013;
    /*! block id=1017,1016,1026,1018,1034,1018,1027,1019,1038,10 19,1028,1020,1037,1020,1029,1021,1036,1021,1030,10 22,1035,1022,1031,1023,1041,1023,1032,1024,1040,10 24,1033,1025,1039,1025 !*/
    switch (params.getParam("file:/C:/Users/ISC/Documents/Graphic%20Recall.xml", 'Event_Table', 0).getValue())
    {
    case 2001:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Live + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Live);
    break;
    case 2014:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Family + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Family);
    break;
    case 2008:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + No_Racing + ":" + (2 -1) + ":" + 0);
    ogscript.debug(No_Racing);
    break;
    case 2009:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Kentucky + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Kentucky);
    break;
    case 2011:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Memorial + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Memorial);
    break;
    case 2010:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Belmont + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Belmont);
    break;
    case 2012:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + July4th + ":" + (2 -1) + ":" + 0);
    ogscript.debug(July4th);
    break;
    case 2013:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Labor + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Labor);
    break;
    }
    /*!!
    &lt;block id="1000" type="Live_Number_variable" x="283" y="10" w="243" color="#1b8791" SET="ID:1001" next="ID:1002" /&gt;
    &lt;block id="1001" type="number" x="10" y="10" w="168" VALUE="2001" /&gt;
    &lt;block id="1002" type="Family_Number_variable" x="283" y="82" w="243" color="#21b933" SET="ID:1003" next="ID:1004" /&gt;
    &lt;block id="1003" type="number" x="10" y="82" w="168" VALUE="2014" /&gt;
    &lt;block id="1004" type="No_Racing_Number_variable" x="283" y="154" w="243" color="#481d24" SET="ID:1005" next="ID:1006" /&gt;
    &lt;block id="1005" type="number" x="10" y="154" w="168" VALUE="2008" /&gt;
    &lt;block id="1006" type="Kentucky_Number_variable" x="283" y="226" w="243" color="#857b70" SET="ID:1007" next="ID:1008" /&gt;
    &lt;block id="1007" type="number" x="10" y="226" w="168" VALUE="2009" /&gt;
    &lt;block id="1008" type="Memorial_Number_variable" x="283" y="298" w="243" color="#61210f" SET="ID:1009" next="ID:1010" /&gt;
    &lt;block id="1009" type="number" x="10" y="298" w="168" VALUE="2011" /&gt;
    &lt;block id="1010" type="Belmont_Number_variable" x="283" y="370" w="243" color="#ffc857" SET="ID:1011" next="ID:1012" /&gt;
    &lt;block id="1011" type="number" x="10" y="370" w="168" VALUE="2010" /&gt;
    &lt;block id="1012" type="July4th_Number_variable" x="283" y="442" w="243" color="#c22277" SET="ID:1013" next="ID:1014" /&gt;
    &lt;block id="1013" type="number" x="10" y="442" w="168" VALUE="2012" /&gt;
    &lt;block id="1014" type="Labor_Number_variable" x="283" y="514" w="243" color="#ee342a" SET="ID:1015" next="ID:1017" /&gt;
    &lt;block id="1015" type="number" x="10" y="514" w="168" VALUE="2013" /&gt;
    &lt;block id="1017" type="switch" x="283" y="586" w="268" VALUE="ID:1016" STATEMENT="ID:1026" statementtag_STATEMENT="2001" STATEMENT_0="ID:1027" statementtag_STATEMENT_0="2014" STATEMENT_1="ID:1028" statementtag_STATEMENT_1="2008" STATEMENT_2="ID:1029" statementtag_STATEMENT_2="2009" STATEMENT_3="ID:1030" statementtag_STATEMENT_3="2011" STATEMENT_4="ID:1031" statementtag_STATEMENT_4="2010" STATEMENT_5="ID:1032" statementtag_STATEMENT_5="2012" STATEMENT_6="ID:1033" statementtag_STATEMENT_6="2013" STATEMENT_7="" /&gt;
    &lt;block id="1016" type="param_Device.Event Table (Event_Table)[0]" x="10" y="586" w="243" SET="" /&gt;
    &lt;block id="1026" type="Harrahs_xpression_take" x="854" y="916" w="243" color="#ee862a" TAKEID="ID:1018" BUFFER="2" LAYER="0" next="ID:1034" /&gt;
    &lt;block id="1018" type="Live_Number_variable" x="581" y="916" w="243" color="#1b8791" SET="" /&gt;
    &lt;block id="1034" type="ogscript_debug" x="854" y="1354" w="243" MESSAGE="ID:1018" /&gt;
    &lt;block id="1018" type="Live_Number_variable" x="581" y="916" w="243" color="#1b8791" SET="" /&gt;
    &lt;block id="1027" type="Harrahs_xpression_take" x="3038" y="756" w="243" color="#ee862a" TAKEID="ID:1019" BUFFER="2" LAYER="0" next="ID:1038" /&gt;
    &lt;block id="1019" type="Family_Number_variable" x="2765" y="756" w="243" color="#21b933" SET="" /&gt;
    &lt;block id="1038" type="ogscript_debug" x="3038" y="1066" w="243" MESSAGE="ID:1019" /&gt;
    &lt;block id="1019" type="Family_Number_variable" x="2765" y="756" w="243" color="#21b933" SET="" /&gt;
    &lt;block id="1028" type="Harrahs_xpression_take" x="2492" y="796" w="243" color="#ee862a" TAKEID="ID:1020" BUFFER="2" LAYER="0" next="ID:1037" /&gt;
    &lt;block id="1020" type="No_Racing_Number_variable" x="2219" y="796" w="243" color="#481d24" SET="" /&gt;
    &lt;block id="1037" type="ogscript_debug" x="2492" y="1138" w="243" MESSAGE="ID:1020" /&gt;
    &lt;block id="1020" type="No_Racing_Number_variable" x="2219" y="796" w="243" color="#481d24" SET="" /&gt;
    &lt;block id="1029" type="Harrahs_xpression_take" x="1946" y="836" w="243" color="#ee862a" TAKEID="ID:1021" BUFFER="2" LAYER="0" next="ID:1036" /&gt;
    &lt;block id="1021" type="Kentucky_Number_variable" x="1673" y="836" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1036" type="ogscript_debug" x="1946" y="1210" w="243" MESSAGE="ID:1021" /&gt;
    &lt;block id="1021" type="Kentucky_Number_variable" x="1673" y="836" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1030" type="Harrahs_xpression_take" x="1400" y="876" w="243" color="#ee862a" TAKEID="ID:1022" BUFFER="2" LAYER="0" next="ID:1035" /&gt;
    &lt;block id="1022" type="Memorial_Number_variable" x="1127" y="876" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1035" type="ogscript_debug" x="1400" y="1282" w="243" MESSAGE="ID:1022" /&gt;
    &lt;block id="1022" type="Memorial_Number_variable" x="1127" y="876" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1031" type="Harrahs_xpression_take" x="4676" y="636" w="243" color="#ee862a" TAKEID="ID:1023" BUFFER="2" LAYER="0" next="ID:1041" /&gt;
    &lt;block id="1023" type="Belmont_Number_variable" x="4403" y="636" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1041" type="ogscript_debug" x="4676" y="850" w="243" MESSAGE="ID:1023" /&gt;
    &lt;block id="1023" type="Belmont_Number_variable" x="4403" y="636" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1032" type="Harrahs_xpression_take" x="4130" y="676" w="243" color="#ee862a" TAKEID="ID:1024" BUFFER="2" LAYER="0" next="ID:1040" /&gt;
    &lt;block id="1024" type="July4th_Number_variable" x="3857" y="676" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1040" type="ogscript_debug" x="4130" y="922" w="243" MESSAGE="ID:1024" /&gt;
    &lt;block id="1024" type="July4th_Number_variable" x="3857" y="676" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1033" type="Harrahs_xpression_take" x="3584" y="716" w="243" color="#ee862a" TAKEID="ID:1025" BUFFER="2" LAYER="0" next="ID:1039" /&gt;
    &lt;block id="1025" type="Labor_Number_variable" x="3311" y="716" w="243" color="#ee342a" SET="" /&gt;
    &lt;block id="1039" type="ogscript_debug" x="3584" y="994" w="243" MESSAGE="ID:1025" /&gt;
    &lt;block id="1025" type="Labor_Number_variable" x="3311" y="716" w="243" color="#ee342a" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;1fccdf2d788a746f5b3fd931e0561c4 3&lt;/checksum&gt;!!*/</task>
    </param>
    <param expand="true" height="73" left="40" oid="Race_Table" precision="0" style="style:toggleButton;t:bg#selectbg;f:bg#dark; " top="190" width="984">
    <task tasktype="ogscript">var Schedule = 0;
    var Photo = 0;
    var Inquiry = 0;
    var Objection = 0;
    var Race_Delay = 0;
    var Tote_Delay = 0;
    var Equipment_Delay = 0;
    var Weather_Delay = 0;

    /*! block id=1086,1087 !*/
    Schedule = 7004;
    /*! block id=1043,1044 !*/
    Photo = 6001;
    /*! block id=1051,1052 !*/
    Inquiry = 6002;
    /*! block id=1053,1054 !*/
    Objection = 6003;
    /*! block id=1055,1056 !*/
    Race_Delay = 6005;
    /*! block id=1057,1058 !*/
    Tote_Delay = 6004;
    /*! block id=1059,1060 !*/
    Equipment_Delay = 6007;
    /*! block id=1061,1062 !*/
    Weather_Delay = 6008;
    /*! block id=1063,1042,1071,1064,1078,1064,1072,1065,1079,10 65,1073,1066,1080,1066,1074,1067,1081,1067,1075,10 68,1082,1068,1076,1069,1083,1069,1077,1070,1084,10 70,1089,1088,1090,1088 !*/
    switch (params.getParam("file:/C:/Users/ISC/Documents/Graphic%20Recall.xml", 'Race_Table', 0).getValue())
    {
    case 6001:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Photo + ":" + (1 -1) + ":" + 0);
    ogscript.debug(Photo);
    break;
    case 6002:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Inquiry + ":" + (1 -1) + ":" + 0);
    ogscript.debug(Inquiry);
    break;
    case 6003:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Objection + ":" + (1 -1) + ":" + 0);
    ogscript.debug(Objection);
    break;
    case 6005:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Race_Delay + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Race_Delay);
    break;
    case 6004:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Tote_Delay + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Tote_Delay);
    break;
    case 6007:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Equipment_Delay + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Equipment_Delay);
    break;
    case 6008:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Weather_Delay + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Weather_Delay);
    break;
    case 7004:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Schedule + ":" + (1 -1) + ":" + 0);
    ogscript.debug(Schedule);
    break;
    }
    /*!!
    &lt;block id="1086" type="Schedule_Number_variable" x="283" y="10" w="243" color="#ee862a" SET="ID:1087" next="ID:1043" /&gt;
    &lt;block id="1087" type="number" x="10" y="10" w="168" VALUE="7004" /&gt;
    &lt;block id="1043" type="Photo_Number_variable" x="283" y="82" w="243" color="#ee862a" SET="ID:1044" next="ID:1051" /&gt;
    &lt;block id="1044" type="number" x="10" y="82" w="168" VALUE="6001" /&gt;
    &lt;block id="1051" type="Inquiry_Number_variable" x="283" y="154" w="243" color="#857b70" SET="ID:1052" next="ID:1053" /&gt;
    &lt;block id="1052" type="number" x="10" y="154" w="168" VALUE="6002" /&gt;
    &lt;block id="1053" type="Objection_Number_variable" x="283" y="226" w="243" color="#61210f" SET="ID:1054" next="ID:1055" /&gt;
    &lt;block id="1054" type="number" x="10" y="226" w="168" VALUE="6003" /&gt;
    &lt;block id="1055" type="Race_Delay_Number_variable" x="283" y="298" w="243" color="#ffc857" SET="ID:1056" next="ID:1057" /&gt;
    &lt;block id="1056" type="number" x="10" y="298" w="168" VALUE="6005" /&gt;
    &lt;block id="1057" type="Tote_Delay_Number_variable" x="283" y="370" w="243" color="#c22277" SET="ID:1058" next="ID:1059" /&gt;
    &lt;block id="1058" type="number" x="10" y="370" w="168" VALUE="6004" /&gt;
    &lt;block id="1059" type="Equipment_Delay_Number_variable" x="283" y="442" w="243" color="#ee342a" SET="ID:1060" next="ID:1061" /&gt;
    &lt;block id="1060" type="number" x="10" y="442" w="168" VALUE="6007" /&gt;
    &lt;block id="1061" type="Weather_Delay_Number_variable" x="283" y="514" w="243" color="#ffba7c" SET="ID:1062" next="ID:1063" /&gt;
    &lt;block id="1062" type="number" x="10" y="514" w="168" VALUE="6008" /&gt;
    &lt;block id="1063" type="switch" x="283" y="586" w="268" VALUE="ID:1042" STATEMENT="ID:1071" statementtag_STATEMENT="6001" STATEMENT_0="ID:1072" statementtag_STATEMENT_0="6002" STATEMENT_1="ID:1073" statementtag_STATEMENT_1="6003" STATEMENT_2="ID:1074" statementtag_STATEMENT_2="6005" STATEMENT_3="ID:1075" statementtag_STATEMENT_3="6004" STATEMENT_4="ID:1076" statementtag_STATEMENT_4="6007" STATEMENT_5="ID:1077" statementtag_STATEMENT_5="6008" STATEMENT_6="ID:1089" statementtag_STATEMENT_6="7004" STATEMENT_7="" /&gt;
    &lt;block id="1042" type="param_Device.Race Table (Race_Table)[0]" x="10" y="586" w="243" SET="" /&gt;
    &lt;block id="1071" type="Harrahs_xpression_take" x="854" y="916" w="243" color="#ee862a" TAKEID="ID:1064" BUFFER="1" LAYER="0" next="ID:1078" /&gt;
    &lt;block id="1064" type="Photo_Number_variable" x="581" y="916" w="243" color="#ee862a" SET="" /&gt;
    &lt;block id="1078" type="ogscript_debug" x="854" y="1354" w="243" MESSAGE="ID:1064" /&gt;
    &lt;block id="1064" type="Photo_Number_variable" x="581" y="916" w="243" color="#ee862a" SET="" /&gt;
    &lt;block id="1072" type="Harrahs_xpression_take" x="3038" y="756" w="243" color="#ee862a" TAKEID="ID:1065" BUFFER="1" LAYER="0" next="ID:1079" /&gt;
    &lt;block id="1065" type="Inquiry_Number_variable" x="2765" y="756" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1079" type="ogscript_debug" x="3038" y="1066" w="243" MESSAGE="ID:1065" /&gt;
    &lt;block id="1065" type="Inquiry_Number_variable" x="2765" y="756" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1073" type="Harrahs_xpression_take" x="2492" y="796" w="243" color="#ee862a" TAKEID="ID:1066" BUFFER="1" LAYER="0" next="ID:1080" /&gt;
    &lt;block id="1066" type="Objection_Number_variable" x="2219" y="796" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1080" type="ogscript_debug" x="2492" y="1138" w="243" MESSAGE="ID:1066" /&gt;
    &lt;block id="1066" type="Objection_Number_variable" x="2219" y="796" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1074" type="Harrahs_xpression_take" x="1946" y="836" w="243" color="#ee862a" TAKEID="ID:1067" BUFFER="2" LAYER="0" next="ID:1081" /&gt;
    &lt;block id="1067" type="Race_Delay_Number_variable" x="1673" y="836" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1081" type="ogscript_debug" x="1946" y="1210" w="243" MESSAGE="ID:1067" /&gt;
    &lt;block id="1067" type="Race_Delay_Number_variable" x="1673" y="836" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1075" type="Harrahs_xpression_take" x="1400" y="876" w="243" color="#ee862a" TAKEID="ID:1068" BUFFER="2" LAYER="0" next="ID:1082" /&gt;
    &lt;block id="1068" type="Tote_Delay_Number_variable" x="1127" y="876" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1082" type="ogscript_debug" x="1400" y="1282" w="243" MESSAGE="ID:1068" /&gt;
    &lt;block id="1068" type="Tote_Delay_Number_variable" x="1127" y="876" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1076" type="Harrahs_xpression_take" x="4676" y="636" w="243" color="#ee862a" TAKEID="ID:1069" BUFFER="2" LAYER="0" next="ID:1083" /&gt;
    &lt;block id="1069" type="Equipment_Delay_Number_variable" x="4403" y="636" w="243" color="#ee342a" SET="" /&gt;
    &lt;block id="1083" type="ogscript_debug" x="4676" y="850" w="243" MESSAGE="ID:1069" /&gt;
    &lt;block id="1069" type="Equipment_Delay_Number_variable" x="4403" y="636" w="243" color="#ee342a" SET="" /&gt;
    &lt;block id="1077" type="Harrahs_xpression_take" x="4130" y="676" w="243" color="#ee862a" TAKEID="ID:1070" BUFFER="2" LAYER="0" next="ID:1084" /&gt;
    &lt;block id="1070" type="Weather_Delay_Number_variable" x="3857" y="676" w="243" color="#ffba7c" SET="" /&gt;
    &lt;block id="1084" type="ogscript_debug" x="4130" y="922" w="243" MESSAGE="ID:1070" /&gt;
    &lt;block id="1070" type="Weather_Delay_Number_variable" x="3857" y="676" w="243" color="#ffba7c" SET="" /&gt;
    &lt;block id="1089" type="Harrahs_xpression_take" x="3584" y="716" w="243" color="#ee862a" TAKEID="ID:1088" BUFFER="1" LAYER="0" next="ID:1090" /&gt;
    &lt;block id="1088" type="Schedule_Number_variable" x="3311" y="716" w="243" color="#ee862a" SET="" /&gt;
    &lt;block id="1090" type="ogscript_debug" x="3584" y="994" w="243" MESSAGE="ID:1088" /&gt;
    &lt;block id="1088" type="Schedule_Number_variable" x="3311" y="716" w="243" color="#ee862a" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;db73029464cf6fbb221022b360f4b45 d&lt;/checksum&gt;!!*/</task>
    </param>
    <param expand="true" height="73" left="42" oid="Wager_Table" precision="0" style="style:toggleButton;t:bg#selectbg;f:bg#dark; " top="304" width="737">
    <task tasktype="ogscript">var P4W = 0;
    var P4C = 0;
    var P5W = 0;
    var P5C = 0;
    var P3 = 0;
    var Late_Double = 0;

    /*! block id=1099,1100 !*/
    P4W = 2004;
    /*! block id=1097,1098 !*/
    P4C = 2003;
    /*! block id=1095,1096 !*/
    P5W = 2006;
    /*! block id=1093,1094 !*/
    P5C = 2005;
    /*! block id=1091,1092 !*/
    P3 = 2002;
    /*! block id=1089,1090 !*/
    Late_Double = 2007;
    /*! block id=1102,1101,1109,1103,1115,1103,1110,1104,1119,11 04,1111,1105,1118,1105,1112,1106,1117,1106,1113,11 07,1116,1107,1114,1108,1120,1108 !*/
    switch (params.getParam("file:/C:/Users/ISC/Documents/Graphic%20Recall.xml", 'Wager_Table', 0).getValue())
    {
    case 2004:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + P4W + ":" + (2 -1) + ":" + 0);
    ogscript.debug(P4W);
    break;
    case 2003:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + P4C + ":" + (2 -1) + ":" + 0);
    ogscript.debug(P4C);
    break;
    case 2006:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + P5W + ":" + (2 -1) + ":" + 0);
    ogscript.debug(P5W);
    break;
    case 2005:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + P5C + ":" + (2 -1) + ":" + 0);
    ogscript.debug(P5C);
    break;
    case 2002:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + P3 + ":" + (2 -1) + ":" + 0);
    ogscript.debug(P3);
    break;
    case 2007:
    rosstalk.sendMessage("10.0.1.25", 7788, "TAKE " + Late_Double + ":" + (2 -1) + ":" + 0);
    ogscript.debug(Late_Double);
    break;
    }
    /*!!
    &lt;block id="1099" type="P4W_Number_variable" x="283" y="10" w="243" color="#ee342a" SET="ID:1100" next="ID:1097" /&gt;
    &lt;block id="1100" type="number" x="10" y="10" w="168" VALUE="2004" /&gt;
    &lt;block id="1097" type="P4C_Number_variable" x="283" y="82" w="243" color="#c22277" SET="ID:1098" next="ID:1095" /&gt;
    &lt;block id="1098" type="number" x="10" y="82" w="168" VALUE="2003" /&gt;
    &lt;block id="1095" type="P5W_Number_variable" x="283" y="154" w="243" color="#ffc857" SET="ID:1096" next="ID:1093" /&gt;
    &lt;block id="1096" type="number" x="10" y="154" w="168" VALUE="2006" /&gt;
    &lt;block id="1093" type="P5C_Number_variable" x="283" y="226" w="243" color="#61210f" SET="ID:1094" next="ID:1091" /&gt;
    &lt;block id="1094" type="number" x="10" y="226" w="168" VALUE="2005" /&gt;
    &lt;block id="1091" type="P3_Number_variable" x="283" y="298" w="243" color="#857b70" SET="ID:1092" next="ID:1089" /&gt;
    &lt;block id="1092" type="number" x="10" y="298" w="168" VALUE="2002" /&gt;
    &lt;block id="1089" type="Late_Double_Number_variable" x="283" y="370" w="243" color="#481d24" SET="ID:1090" next="ID:1102" /&gt;
    &lt;block id="1090" type="number" x="10" y="370" w="168" VALUE="2007" /&gt;
    &lt;block id="1102" type="switch" x="283" y="442" w="268" VALUE="ID:1101" STATEMENT="ID:1109" statementtag_STATEMENT="2004" STATEMENT_0="ID:1110" statementtag_STATEMENT_0="2003" STATEMENT_1="ID:1111" statementtag_STATEMENT_1="2006" STATEMENT_2="ID:1112" statementtag_STATEMENT_2="2005" STATEMENT_3="ID:1113" statementtag_STATEMENT_3="2002" STATEMENT_4="ID:1114" statementtag_STATEMENT_4="2007" STATEMENT_5="" /&gt;
    &lt;block id="1101" type="param_Device.Wager Table (Wager_Table)[0]" x="10" y="442" w="243" SET="" /&gt;
    &lt;block id="1109" type="Harrahs_xpression_take" x="854" y="692" w="243" color="#ee862a" TAKEID="ID:1103" BUFFER="2" LAYER="0" next="ID:1115" /&gt;
    &lt;block id="1103" type="P4W_Number_variable" x="581" y="692" w="243" color="#ee342a" SET="" /&gt;
    &lt;block id="1115" type="ogscript_debug" x="854" y="1018" w="243" MESSAGE="ID:1103" /&gt;
    &lt;block id="1103" type="P4W_Number_variable" x="581" y="692" w="243" color="#ee342a" SET="" /&gt;
    &lt;block id="1110" type="Harrahs_xpression_take" x="3038" y="532" w="243" color="#ee862a" TAKEID="ID:1104" BUFFER="2" LAYER="0" next="ID:1119" /&gt;
    &lt;block id="1104" type="P4C_Number_variable" x="2765" y="532" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1119" type="ogscript_debug" x="3038" y="730" w="243" MESSAGE="ID:1104" /&gt;
    &lt;block id="1104" type="P4C_Number_variable" x="2765" y="532" w="243" color="#c22277" SET="" /&gt;
    &lt;block id="1111" type="Harrahs_xpression_take" x="2492" y="572" w="243" color="#ee862a" TAKEID="ID:1105" BUFFER="2" LAYER="0" next="ID:1118" /&gt;
    &lt;block id="1105" type="P5W_Number_variable" x="2219" y="572" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1118" type="ogscript_debug" x="2492" y="802" w="243" MESSAGE="ID:1105" /&gt;
    &lt;block id="1105" type="P5W_Number_variable" x="2219" y="572" w="243" color="#ffc857" SET="" /&gt;
    &lt;block id="1112" type="Harrahs_xpression_take" x="1946" y="612" w="243" color="#ee862a" TAKEID="ID:1106" BUFFER="2" LAYER="0" next="ID:1117" /&gt;
    &lt;block id="1106" type="P5C_Number_variable" x="1673" y="612" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1117" type="ogscript_debug" x="1946" y="874" w="243" MESSAGE="ID:1106" /&gt;
    &lt;block id="1106" type="P5C_Number_variable" x="1673" y="612" w="243" color="#61210f" SET="" /&gt;
    &lt;block id="1113" type="Harrahs_xpression_take" x="1400" y="652" w="243" color="#ee862a" TAKEID="ID:1107" BUFFER="2" LAYER="0" next="ID:1116" /&gt;
    &lt;block id="1107" type="P3_Number_variable" x="1127" y="652" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1116" type="ogscript_debug" x="1400" y="946" w="243" MESSAGE="ID:1107" /&gt;
    &lt;block id="1107" type="P3_Number_variable" x="1127" y="652" w="243" color="#857b70" SET="" /&gt;
    &lt;block id="1114" type="Harrahs_xpression_take" x="3584" y="492" w="243" color="#ee862a" TAKEID="ID:1108" BUFFER="2" LAYER="0" next="ID:1120" /&gt;
    &lt;block id="1108" type="Late_Double_Number_variable" x="3311" y="492" w="243" color="#481d24" SET="" /&gt;
    &lt;block id="1120" type="ogscript_debug" x="3584" y="658" w="243" MESSAGE="ID:1108" /&gt;
    &lt;block id="1108" type="Late_Double_Number_variable" x="3311" y="492" w="243" color="#481d24" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;b025c8e16155bc1658c2a5140c4b849 e&lt;/checksum&gt;!!*/</task>
    </param>
    <label height="37" left="0" name="Graphic Recalls" right="2" style="txt-align:center;bg#dark;bdr:etched;font:bold;size:Big ;" top="0"/>
    <label height="37" left="0" name="Event Message Panels" right="2" style="txt-align:center;bg#dark;bdr:etched;font:bold;size:Big ;" top="38"/>
    <label height="37" left="0" name="Racing Graphics" right="2" style="txt-align:center;bg#dark;bdr:etched;font:bold;size:Big ;" top="150"/>
    <label height="37" left="0" name="Wagering Message Panels" right="2" style="txt-align:center;bg#dark;bdr:etched;font:bold;size:Big ;" top="265"/>
    <table height="72" left="285" top="439" width="249">
    <meta>
    <lookup id="hosts">
    <entry key=".scriptport">false</entry>
    <entry key=".color">-1145302</entry>
    <entry key=".port">7788</entry>
    <entry key=".host">"10.0.1.25"</entry>
    <entry key=".scripthost">false</entry>
    <entry key=".devicetype">XPression</entry>
    </lookup>
    </meta>
    <tr>
    <button buttontype="push" colspan="1" fill="both" height="73" name="Clear M1" rowspan="1" style="bg#control;fg#foreground;txt-align:center;" weightx="1.0" weighty="1.0">
    <task tasktype="ogscript">/*! block id=1091 !*/
    rosstalk.sendMessage("10.0.1.25", 7788, "CLFB " + (1 - 1));
    /*! block id=1092 !*/
    ogscript.debug("Clear Framebuffer 1");
    /*!!
    &lt;block id="1091" type="null_xpression_clearbuffer" x="10" y="10" w="243" color="#ee862a" BUFFER="1" next="ID:1092" /&gt;
    &lt;block id="1092" type="ogscript_debug" x="10" y="90" w="243" MESSAGE="Clear Framebuffer 1" /&gt;
    !!*/
    /*!!&lt;checksum&gt;812b06d26eb4ab9c9bec0ad47f44942 c&lt;/checksum&gt;!!*/</task>
    </button>
    <button buttontype="push" colspan="1" fill="both" name="Clear M2" rowspan="1" style="bg#control;fg#foreground;txt-align:center;" weightx="1.0" weighty="1.0">
    <task tasktype="ogscript">


    /*! block id=1093 !*/
    rosstalk.sendMessage("10.0.1.25", 7788, "CLFB " + (2 - 1));
    /*! block id=1094 !*/
    ogscript.debug("Clear Framebuffer 2");
    /*!!
    &lt;block id="1093" type="null_xpression_clearbuffer" x="10" y="10" w="243" color="#ee862a" BUFFER="2" next="ID:1094" /&gt;
    &lt;block id="1094" type="ogscript_debug" x="10" y="90" w="243" MESSAGE="Clear Framebuffer 2" /&gt;
    !!*/
    /*!!&lt;checksum&gt;fe99d6f4f8b11409574b64c4e93ee18 a&lt;/checksum&gt;!!*/</task>
    </button>
    </tr>
    </table>
    </abs>


  • 2.  RE: Dashboard not calling first selection

    Posted 03-12-2018 11:41
    Not sure about the situation with not calling it "again", but the part of calling it when you first open DashBoard is done with [I]runtaskonload="true"[/I].

    In the [I][/I] that creates the dropdown, or radio buttons or what not, add the [I]runtaskonload="true"[/I] and it will run once the DashBoard is loaded.

    It's impossible to use your DashBoard that you included in the code, as all elements are looking to locate an xml file.
    #DashBoard


  • 3.  RE: Dashboard not calling first selection

    Posted 03-12-2018 20:16

    Thank you for your reply. I tried the [I]runtaskonload=true, [/I]and it did work. But, whenever the framebuffer is cleared, I can't load the graphic that is listed first in the table. Refer to the code I pasted below. The first choice is highlighted in bold. If I want to load the graphic listed as "Live", it won't load unless I first select one of the others listed in the table first. Then I'll be able to load the first one.

     

    <param expand="true" height="73" left="42" oid="Event_Table" precision="0" style="style:toggleButton;t:bg#selectbg;f:bg#dark; " top="77" width="983">
    <task tasktype="ogscript">var Live = 0;
    var Family = 0;
    var No_Racing = 0;
    var Kentucky = 0;
    var Memorial = 0;
    var Belmont = 0;
    var July4th = 0;
    var Labor = 0;

     


    As for the XML file. If there wasn't one associated with the custom panel file, I would have to save the file every time I would close Dashboard.

    Thanks for your time.

    Rich


    #DashBoard


  • 4.  RE: Dashboard not calling first selection

    Posted 03-13-2018 10:22
    Ahhh, it's an external XML file and not a self-contained XML file in the DashBoard file.. I get it.

    But ok, so... Say we clear the framebuffer, and that sets the parameter above to "Live". However, you load the graphic WHEN you choose the parameter in the dropdown?
    In that case, you need somehow to trigger the parameter task without actually selecting. Could that not be done with a simple button next to it? "Take Current" or something like that?

    From my experience, a task is run whenever a parameter is changed. But as you mention yourself, you have to change the parameter dropdown in order for it to actually trigger the task again.
    So you need to somehow be able to call on the parameter task without actually selecting the dropdown.

    May I suggest a "take" button next to it, with a simple "fire GPI" task. And then give the "Trigger ID" on the dropdown the same GPI trigger?
    #DashBoard