I have a button in PowerApps, once i click on button timer will start and it will run a flow as well, and from flow i was passing some value to PowerApps, so once value comes from flow, i want to stop the timer in PowerApps.
Thanks,
Riyaz
can you plz explain in brief.
And here once timer start the spinner also running. so i need to change the visibility once the timer stop
When the flow returns values, ie flow has finished. Set the variable to false. Then you can do an If statement within you Timer Control on the Auto Pause to pause the timer when the flow has finished executing. Then take that time and store as a variable if need be.
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.
LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218
You can set a boolean variable in the onselect property
Set(varTimer, !varTimer);
If I have answered you accept as solution
You can set a boolean variable in the onselect property
Set(varTimer, !varTimer);
If I have answered you accept as solution
I think you can just set a variable for the Timer's start property, for eg varTimer and for the OnSelect property of the button try the following
Set(varTimer, true);
Your code including the flow.run().
Set(varTimer, false).
As code executes one after the other, Set(varTimer, false) will not execute until the flow run is completed and the response is received.
If possible try including your code as well.
Thanks.
WarrenBelz
146,618
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,962
Most Valuable Professional