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
vribeiro
Frequent Visitor

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

@vribeiro 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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,540)