Hello,
I am trying to figure out how to reset the Value on the Timer Component when Running is false. I am binding Running to a tag. Just need help trying to reset.
Any help will be greatly appreciated
Put a script on the timers propertyChange function
if event.propertyName=='running' and not event.source.running:
event.source.value=0
Ok, has anyone tried this latel?. I followed all the steps and it will not reset.
The original question was missing any detail that would help provide an answer. You'll need to explain what you are trying to achieve, how, what you expect and what you got.
Just looking to have the timer value go back to 0 when not running.
Have you applied the script as shown to the propertyChange
event of the timer in question? Are you receiving an error in the designer/client logs? How are you starting and stopping the timer? Is anything else bound to / overwriting the timer's value
property?
Yes, I have put the info in the property change of the timer. I guess I am looking to see if there is a tutorial on how to start up from scratch.
As a sanity check, are you running in preview mode? Scripts won't run unless you're in preview.
LOL, you are correct. Got it. Thank You!!