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

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (28,210)