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.
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!!

yes, he made a mistake on the variable.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,175)