web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Refreshing Gallery Thr...
Power Apps
Unanswered

Refreshing Gallery Through Timer

(0) ShareShare
ReportReport
Posted on by

Hi Everyone

 

I have gallery in my PowerApps which should be refresh every 4 sec when the timer ends 

For the timer property I have added following properties 

Inserted a Timer control and set its Duration property to 4000 (for 4 seconds).
2. Set the AutoStart property of the Timer to true. This will start the timer automatically when the app is launched.
3. Set the Repeat property of the Timer to false. This will prevent the timer from restarting automatically when it finishes counting.
4. On the Timer's OnTimerEnd property, add the following formula to refresh your gallery and restart the timer:
 Refresh(YourGalleryName);
 UpdateContext({ResetTimer: true});
 UpdateContext({ResetTimer: false});
5 Reset property of timer : ResetTimer

the issue Iam facing is after 4sec the timer is not resetting, it keeps on counting from 4, 5,6 

After 4 sec  , I want gallery should be refresh and the time should be reset to zero (start the count from begining )

 

Could anyone please help me how do I achieve this 

 

Categories:
I have the same question (0)
  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at
    Inserted a Timer control and set its Duration property to 4000 (for 4 seconds).
    2. Set the AutoStart property of the Timer to true. This will start the timer automatically when the app is launched.
    3. Set the Repeat property of the Timer to TRUE. This will make the timer restart automatically when it finishes counting.
    4. On the Timer's OnTimerEnd property, add the following formula to refresh your gallery and restart the timer:
     Refresh(YourGalleryName);
     UpdateContext({ResetTimer: true});
     UpdateContext({ResetTimer: false});
    5 Reset property of timer : ResetTimer

     Repeat property has ti be set to true for what you want to achieve.

  • Danny_Dicaprio Profile Picture
    on at

    Hi @DBO_DV  

     

    Thbaks for the response 

     

    still Iam facing same issue 

     

    timer is not getting stoped  

     

    Danny_Dicaprio_0-1712127033237.png

    Danny_Dicaprio_1-1712127129891.png

     

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    You've added one zero to much. you've setted it to 40 seconds instead of 4

  • Danny_Dicaprio Profile Picture
    on at

    @DBO_DV

     

    Didn't spot that , Thanks 

     

    But the timer is not counting again after 4 sec the timer stops and not restarting 

  • Verified answer
    Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    Remove all this from your timers onend property

     UpdateContext({ResetTimer: true});
     UpdateContext({ResetTimer: false});
    5 Reset property of timer : ResetTimer

     You're manually doing what repeat does and set auto pause to false.

     

  • Danny_Dicaprio Profile Picture
    on at

    @DBO_DV 

     

    yep , that worked pefectly fine 

     

    Thanks for the knowledge

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard