Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Default value of a gallery does not always update when the gallery is re-filled

Hi folks. I have two galleries, Gallery1 and Gallery2. 

Gallery2 is filled according to the value selected on Gallery1 (basically, you select one Application from the list in Gallery1, and you get the detail of that Application on Gallery2).

The "Items" property of my Gallery2 is the following:


It filters from the AppDetail$ table only the values were AppDetail$.ApplicationName = the selected value of Gallery1. Quite easy, isn't it? 

Let me also highlight that the Gallery2.Default property is empty. 

Well: when I click on the items listed on Gallery1, the Gallery2 content is CORRECTLY refreshed. No issues with that.
The point is that SOMETIMES the first item of Gallery2 is automatically selected, SOMETIMES it is not! 

I am getting crazy with this issue. 

I have found a workaround: if I add a "Refresh('[dbo].[AppDetail$]')" to the OnSelect property of Gallery1, the Gallery2 gets its first item automatically selected, every time. 
But I don't like it, as it reloads data from the DB! I'd like to avoid... useless operations on the DB 🙂

Thanks everybody in advance! 

Helpful resources


Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!


Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)


Community Highlights

Check out whats happening in Power Apps


Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,788)