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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / update/refresh Collect...
Power Apps
Answered

update/refresh Collection in Gallery

(0) ShareShare
ReportReport
Posted on by

Source: SecurityReview

Collection: SRView

Varible: varGRP


In screen1 (Home), I have made a collection that allows my Gallery item to Fill(green) onselect:
Fill=If(ThisItem in SRView, RGBA(0,255,0,1),RGBA(0,0,0,0))

OnSelect=Set(varGRP,ThisItem); Collect(SRView,ThisItem); Navigate(GroupReview)

 

The app then navigates to a new screen(GroupReview) that has a gallery that shows items nested under the item selected from Home screen. If I navigate back home, that item is now filled green.

However, i need to have the option to update the "GroupReview" Gallery. I have set an Icon to edit a form on a different screen (UpdateResults).

When I update the form on "UpdateResults" screen and navigate to the "Home" Screen my fill resets itself.

 

Is there a way to maintain my fill settings after updating a form?

screen1.png
screen2.png
screen3.png
Categories:
  • Sunil-Narnaware Profile Picture
    681 on at

    @CiscoDev can you share the purpose of Form on UpdateResults screen? What are you changing with SRView Collection?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @CiscoDev ,

     

    The reason is you saved ThisItem to the collection when selecting the item in Screen 1. However, after you have updated in the form, the item is not exact the same, so the current item is not "in" that collection.

     

    To solve this problem, you need to restrict the values that will not be changed in the form, I assume it could be the ID if you are using SharePoint list as data source.

     

    So,

    Fill=If(ThisItem.ID in SRView.ID, RGBA(0,255,0,1),RGBA(0,0,0,0))

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard