Facility Control

 View Only
  • 1.  trigger one button from a task on another button?

    Posted 12-08-2019 16:09

    Hi all!

    I'm SUPER new to Dashboard, just finished installing our new XPression and Carbonite Ultra, so I apologize for the incoming dumb questions. I'm also not much of a programmer, so I'm doing as much as I can through Visual Logic.

    I'm making a Baseball controller to select the current batter. I have all 18 batters in two columns with buttons next to each one. When you click a button, the name changes to "Batter x ➡" and the button color changes. This all works great, but I'm having trouble resetting the OTHER buttons when you select the next batter. 

    I made a "reset" button for each team, but I can't find an option in the Visual Logic ogScript that can call a task on another button. I can't just have the batter 2 button reset the batter 1 button because we all know someone is going to have to go back or skip one at some point.

    I found a workaround for now where I copied the source of the reset button and pasted it into all 18 of the buttons as its own task, but now if I make a change to anything I have to go into the source for 18 buttons. Is there a simpler way to do this?

    ---Secondary question: What is the default color for buttons for the reset?

    Thanks a lot!



  • 2.  RE: trigger one button from a task on another button?

    Posted 12-09-2019 17:32

    There may be a better way to do this, I am also no expert, but one way would be to add a "Trigger ID" to the button you want to trigger (the reset button), and then in the other button you want to trigger it from add a Visual Logic command to "Fire GPI" of that number. That way you aren't copying the source code, you're still in the visual logic world, and if you want to change the code of the reset button you only have to do it once.


    #DashBoard


  • 3.  RE: trigger one button from a task on another button?

    Posted 12-10-2019 03:33

    That worked perfectly! Thanks so much for your help!


    #DashBoard