cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooper33
Level 8

Refreshing a selected gallery item?

I have a multiline plaintext SharePoint field that I'm updating on a custom PowerApp.

The first screen is a gallery. On select of a specific item, another screen is opened and information about the item displays (GalleryName.Selected.Properties). Then there is a Text Input that updates the SharePoint field via Patch function in OnSelect of a button

Patch is working correctly and the item updates. After the Patch function, the list is refreshed

Refresh('List Name')

I expected this to update the selected gallery item, but it doesn't. I have to navigate back to the gallery on the first screen and then choose the item to see the update

 

Is there a way to update/refresh the selected gallery item?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Refreshing a selected gallery item?

@cooper33this should happen for you based on how you describe the situation.

However, what is the Items property of your Gallery?  Are you basing this on DataSource (either directly or with other filtering statements) or are you basing it on a Collection that perhaps you are only re-collecting based on some other action or condition?

 

If you have a gallery with Items of dataSource and you patch or otherwise update a record in the dataSource, the Gallery will change to reflect it.  If you have it based on a Collection, you will need to refresh the Collection (there is no refresh for them, you have to issue the statement to collect again).

_____________________________________________________________________________________
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.
2 REPLIES 2
Super User
Super User

Re: Refreshing a selected gallery item?

@cooper33this should happen for you based on how you describe the situation.

However, what is the Items property of your Gallery?  Are you basing this on DataSource (either directly or with other filtering statements) or are you basing it on a Collection that perhaps you are only re-collecting based on some other action or condition?

 

If you have a gallery with Items of dataSource and you patch or otherwise update a record in the dataSource, the Gallery will change to reflect it.  If you have it based on a Collection, you will need to refresh the Collection (there is no refresh for them, you have to issue the statement to collect again).

_____________________________________________________________________________________
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.
cooper33
Level 8

Re: Refreshing a selected gallery item?

Thanks forgot about that. My Items property was RecordsCollection. On the button I added this to get it working: 

ClearCollect(RecordsCollection,'Issues List')

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 212 members 4,495 guests
Please welcome our newest community members: