Facility Control

 View Only
  • 1.  Dashboard Toggle button

    Posted 9 days ago

    Is there any way, programatically, to reset the toggle button back to it's default state WITHOUT having the associated tasks execute?

    Explaining this ...
    button21 has two states (ON with a red background & OFF with a grey background) 
    bstate=1 ... button is ON
    bstate=0 ... button is OFF

    I've used the code
    params.setValue('button21', 0, 0)  ... to set the button state back to "0" and it does toggle the button back to an "OFF" state but it will also cause all of the tasks associated with the button to execute (according to code).

    Essentially, I just want to set the button background to the "OFF" colour.

    Additionally, can you set multiple variables in the params.setValue function -- maybe like this....
    params.setValue('button21' & 'button22' , 0, 0)
    -or-
    params.setValue('button21' + 'button22' , 0, 0)


    Any suggestions would be greatly appreciated



    ------------------------------
    JerryB
    ------------------------------