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 / Dropdown in Gallery on...
Power Apps
Answered

Dropdown in Gallery only shows default Value at first, then blank

(0) ShareShare
ReportReport
Posted on by 9

Hello everyone.

 

After some tinkering I am at the end of my (admitting still quite small) wits. 

 

I am using Sharepoint Lists as my Datasources.

 

I have a Recordsgallery1, where I pick my "Projects", then use a button to navigate to a different Canvas (Details for "this" Project)

 

OnVisible of the Details Canvas I create a collection (the update one is for later):  

 

ClearCollect(colInnovData, Filter(Innov, 'Project-ID' = RecordsGallery1.Selected.'Project-ID'));Clear(colInnovUpdate)

 

 

In this details Canvas I have a gallery, that shows colInnovData with several fields and functions. Some of them are Dropdown fields (in Powerapps and in the Sharepoint list too):

Items of the dropdown fields look like this:

 

Choices(Innov.ATProd)

 

 

Default selected Item is:

 

ThisItem.ATProd

 

 

 Works perfect when I first navigate to this Canvas.

On the Canvas I have a Reload button, that has an onSelect property of 

  

ClearCollect(colInnovData, Filter(Innov, 'Project-ID' = RecordsGallery1.Selected.'Project-ID'));Clear(colInnovUpdate)

 

 

same as my onVisible (basically, reload all the information, as if I am just now navigating to this Screen).

 

Now to the Problem:

 

At first, everything is fine:

 Puggymon_0-1710407386175.png

 

 I press the reload Button and the Dropdowns are suddenly Empty.

 Puggymon_1-1710407493428.png

 

 

They get filled again If I change the defaultselecteditem Code in any way and revert it back to what it originally was.

 Puggymon_2-1710407629157.png

 

 

It also works if I change the Project in the Main Gallery, switch to Details, back to main, pick the original Project and go to Details again (kinda refresh the record I guess). I hope I could explain it well enough.

 

 Does anyone have an idea why or what I can do to solve this?

 

I already tried to use the lookup() function instead, but got the same behaviour.

Categories:
I have the same question (0)
  • Verified answer
    Puggymon Profile Picture
    9 on at

    Alright, found a work around.

     

    Putting a refresh() function of the Datasource infront of my clearCollect() solved the issue.

     

    Should look like this now:

     

    Refresh(Innov);
    ClearCollect(
     colInnovData,
     Filter(
     Innov,
     'Project-ID' = RecordsGallery1.Selected.'Project-ID'
     )
    );
    Clear(colInnovUpdate)

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard