cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SearchingYT
Helper II
Helper II

Populate dropdown list from gallery item

Hi Power Apps experts

 

I have a Gallery1 with a field "Docno"

 

In have another gallery Gallery2 where I have a dropdown that needs to be populated based on Gallery1.AllItems.Docno

 

I have tried defining Items of dropdown with Gallery1.AllItems.Docno but this doesn't work.
I am getting [object Object] [object Object] ?

 

How may I do this?


Note: I don't want to fetch from Gallery1's datasource.
I would love to fetch the dropdown list from Gallery1 allitems docno.text

Thanks. 🙂

4 REPLIES 4
Anonymous
Not applicable

Hi, I did a quick test here and your code should work well with Gallery1 then defining the dropdown Items with Gallery1.Allitems. yourfield since you're sending a text...

 

But the thing is, this field should not be a record type, if so, you'll need to do some workaround to fetch your dropdown which is expecting a text.

Jagadeeshk
Responsive Resident
Responsive Resident

It is working for me, can you please share little more detail, line codes.

SearchingYT
Helper II
Helper II

@Anonymous and @Jagadeeshk 
Please see my note.
Yes it works when fetched from datasource.
But, my gallery1 contains inputtext field. User fills docno. in here. This is not patched yet - does not exist in the datasource.

At this point, I want my dropdown list to contain values from gallery1 inputtext fields - not gallery1 datasource field.

I hope this helps
TIA as always 🙂

Jagadeeshk
Responsive Resident
Responsive Resident

Pls elaborate with your codes & screens

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,764)