cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dvalenzuela
Helper I
Helper I

Press button automatically after a time

Hi all,

In my app i have a button with the next

OnSelect property: UpdateContext({Weather: MSNWeather.CurrentWeather("Redmond"; "Metric")})

So it gives me uv number and description over Redmond, WA

 

I need that button run periodically every hour for example, or with a timer. Without the need to do clic

 

Thanks for your help

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

You can use a Timer control for that; if you set the following properties on the control:

Duration: 60000 // This sets the timer to 1 minute; change to your desired refresh time
Repeat: true
AutoStart: true
Start: true
OnTimerEnd: Select(NameOfYourButton)

With this, the timer will be started, and every 60 seconds (or the time you specify in the Duration property) it will invoke the OnSelect expression that you have on your button.

Hope this helps!

View solution in original post

2 REPLIES 2
CarlosFigueira
Power Apps
Power Apps

You can use a Timer control for that; if you set the following properties on the control:

Duration: 60000 // This sets the timer to 1 minute; change to your desired refresh time
Repeat: true
AutoStart: true
Start: true
OnTimerEnd: Select(NameOfYourButton)

With this, the timer will be started, and every 60 seconds (or the time you specify in the Duration property) it will invoke the OnSelect expression that you have on your button.

Hope this helps!

View solution in original post

Hi @CarlosFigueira,

 

thanks for your help, it works

 

regards,

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (30,695)