cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ashwini
Frequent Visitor

How can I start and stop timer on click on different strart and stop button?

How can I start and stop timer  on click on different strart and stop button?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi Ashwini,

 

 Add two buttons on the app, one for Start, another one for Stop.

 

For the Start one, set its OnSelect property: UpdateContext({Start:true})

 

For the Stop one, set its OnSelect property: UpdateContext({Start:false})


Then add a Timer control, set its Start property as: test


Please try if this will work for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yamao-msft
Community Support
Community Support

Hi Ashwini,

 

 Add two buttons on the app, one for Start, another one for Stop.

 

For the Start one, set its OnSelect property: UpdateContext({Start:true})

 

For the Stop one, set its OnSelect property: UpdateContext({Start:false})


Then add a Timer control, set its Start property as: test


Please try if this will work for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

bean
Continued Contributor
Continued Contributor

Well said.

 

Don't you mean set the Start property to Start as that is what your UpdateContext() variable is called? 

 

Sean

Thank You!!

WilsonABC1
Frequent Visitor

yes, he made a mistake on the variable.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (72,860)