Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Using collections as data sources for dropdowns and gallaries in the android player

(1) ShareShare
ReportReport
Posted on by 9

This is a general post that might help someone in the future.  I've struggled with this issue twice.  Once for dropdowns, and once for galleries.  It may not be the accepted or correct way to fix this issue, but since it worked it might save you a few hours of pain.

 

Dropdowns and galleries work fine with collections as data sources in the web player where I do my development.  In both cases, the collections are built on the fly prior to displaying the dropdown or gallery.  When it comes to using a named collection as the data source in either of those types of controls in the android player, the controls refuse to populate.

 

I went through all the testing steps, verifying that that was present before the controls became visible.  Both by displaying a count, and then the data from the first record in the collection in a label.

 

I discovered my solution quite by accident.  At my wits end, I assigned the collection to a variable and then used the variable as the data source in the control in question.  It worked in both case.

 

Set(variable name, collection name);

 

Then in the items property:

variable name

Categories:
  • shhammer Profile Picture
    shhammer 9 on at
    Re: Using collections as data sources for dropdowns and gallaries in the android player

    I don't use IOS devices, so I don't know.  Yes, I did try to reset the control and it didn't help.  Just wanted to pass on my findings.

     

    I appreciate the response.

  • DBO_DV Profile Picture
    DBO_DV 4,430 on at
    Re: Using collections as data sources for dropdowns and gallaries in the android player

    hey @shhammer ,

     

    if the solution worked for you it's great. Do you know if this problem did also occur on IOS devices?

    Did you try to Reset the Control after the collection was populated? 

     

    I'm just asking out of curiosity. 
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard