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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard