Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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 

 

  • Danny_Dicaprio Profile Picture
    on at
    Re: Refreshing Gallery Through Timer

    @DBO_DV 

     

    yep , that worked pefectly fine 

     

    Thanks for the knowledge

  • Verified answer
    DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Refreshing Gallery Through Timer

    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
    Re: Refreshing Gallery Through Timer

    @DBO_DV

     

    Didn't spot that , Thanks 

     

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

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Refreshing Gallery Through Timer

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

  • Danny_Dicaprio Profile Picture
    on at
    Re: Refreshing Gallery Through Timer

    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

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Refreshing Gallery Through Timer
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard