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

Refresh all screens of an app

Hi everyone!

I have an app with 10 screens. How can I refresh all the screens together? For example, if I am on screen 3, after 1 minute my screen refreshes, but if another user is on screen 5, his screen refreshes after the same time without insert a timer with a refresh on each screen. Is this possible?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@RaulSG 

So you will need to perform Refresh(datasource) often in your app then to get the app to recognize new data changes.

There is not other way to get PowerApps to recognize new changes.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

9 REPLIES 9
RandyHayes
Super User III
Super User III

@RaulSG 

Yes this can be done.

Take a look over my video specifically on the subject of screen resets.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Hello @RandyHayes 

My question was not about how to reset the controls of a screen but about refreshing the data of the screens.
Thanks anyway.

GarethPrisk
Super User II
Super User II

Depending on the "data" this can be accomplished a few ways.

  • "Data" which are connected to the data source directly will inherently update themselves whenever the app performs an action (search, filter, create, update, etc.) against that source
  • "Data" which has been collected into the app can be updated as-needed

 

Additionally, there is limited benefit to 'updating' the data on a screen that the user is not currently interacting with. This adds additional overhead to the app, additional data calls, and may lead to a poorer overall performance. What exactly are you trying to accomplish?

RandyHayes
Super User III
Super User III

@RaulSG 

Apologies for misunderstanding.  

Data refreshes is based on refreshing the datasource.  

The first time you use a datasource in your app, it gathers the values of the datasource at that point in time.  It never refreshes it unless you issue a Refresh(dataSource).

It will not automatically refresh.  You must initiate the refresh either via a Timer (if you want to refresh on a schedule) or on-demand through any action - like an Icon or Button action or OnVisible, OnHidden of a screen.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Thank you both for replying @GarethPrisk @RandyHayes 
The application can be accessed by more than one user at a time to manage the same record and I want anyone who has access to it see the last saved information. User 1 can have the application open while user 2 makes a change to a field in the same record. Once the change is made, user 1 would have to see the new data, as would user 2.

RandyHayes
Super User III
Super User III

@RaulSG 

This is going to create a lot of refreshing of data.  If you are having both (or multiple) users updating the exact same record at the same time, you're also going to run into Conflict errors when trying to store the record.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
RaulSG
Frequent Visitor

Only one at a time changes the record but the other one, have to see the changes too.

RandyHayes
Super User III
Super User III

@RaulSG 

So you will need to perform Refresh(datasource) often in your app then to get the app to recognize new data changes.

There is not other way to get PowerApps to recognize new changes.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

RaulSG
Frequent Visitor

Ok, thank you @RandyHayes for your comments.

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 (57,103)