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 / Gallery content not cl...
Power Apps
Answered

Gallery content not clearing data

(0) ShareShare
ReportReport
Posted on by 178

Good day.

I have an app the populates its content based on based on a selection in another gallery which lives in a different screen.

 

The user starts navigation in Screen 1 and selects an item in glr_Ideas

Then Navigates to Screen 2 

Where glr_comments populates its item using this formula

Filter('DataSource',CommentID=glr_Ideas.Selected.ID)

 

If the user navigates to screen 1 and makes another selection, upon navigating to screen 2, they will see the items from the previously selected item for about 1 second until the query is updated.

Is there a way to avoid this?

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @GreenJaguar ,

     

    Can you try passing as arguments as context to Screen 2?

    So for your OnSelect property in 'glr_Ideas'

    Navigate(Screen2, <some - transition>, {GalSelectedRecord: ThisItem})

    On next screen you will have GalSelectedRecord variable which you can use as source of data.

     

    OR

     

    you can Set a Variable then you can Navigate and later use the variable

     

    Hope this helps

  • Verified answer
    GreenJaguar Profile Picture
    178 on at

    Thanks @Ethan_R 

    Could not quite get it to work, but I did find a workable solution.

    When a user loads the Home Screen I set the On-Visible=Clear(col_Comments)  [a comments collection]

    When user interacts with the comments icon in the Gallery,  I set the OnSelect to

    Collect(col_Comments,Filter('Idea Comments',CommentID=glr_Ideas.Selected.ID)); Navigate(Screen 2)

    The Items in the Comments gallery are set to Items=col_Comments

     

    As the user navigates back to the home screen the collection is cleared 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard