cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
d3ell
Level: Powered On

Filter a Gallery from a dropdown list

Hi,

 

Thought this would be simple one, but i cant quite get it to work,

 

I have an edit form that i want the data to be populated from my gallery (Gallery1) for a specific record when this record is chosen in a dropdown box.

 

the Dropdown box is called "DDEditDevelopment" and this pulls data from the gallery (Gallery1) using the syntax below to show all the current developments we have.

Sort(Gallery1.AllItems,Development_Name,Ascending)

On my form (Which is on a seperate screen) i want the data to be populated where this Development is selected. 

 

The Datasource of the form is my Developments Sharepoint list,

 

The item fx i'm using the following but getting re squiggly lines - Can anyone help?

Filter(Gallery1.AllItems,Development_Name=DDEditDevelopment.Selected.Development_Name)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter a Gallery from a dropdown list

Hi @d3ell 

 

Could you please change your formula expression as this?

LookUp(Gallery1.AllItems,Development_Name=DDEditDevelopment.Selected.Development_Name) 

 

Best Regards.

Yumia

3 REPLIES 3
shailendra74
Level 8

Re: Filter a Gallery from a dropdown list

Hi @d3ell ,

 

I did not get your point of having a dropdown, when all the data is already available in Gallery1.

 

OnSelect of a record in gallery, you can write below code to populate your form

 

EditForm(Form1); Navigate(screen2, Fade)
  1. Form1 is the name of from on screen2
  2. Form1 Datasource = Development
  3. Form1 >  Advanced Property > Item:  Lookup(Development, DevelopmentName = Gallery1.Selected.developmentName)

Use SP ID field in Filter instead of Name field.

 

Thanks.

 

Community Support Team
Community Support Team

Re: Filter a Gallery from a dropdown list

Hi @d3ell 

 

Could you please change your formula expression as this?

LookUp(Gallery1.AllItems,Development_Name=DDEditDevelopment.Selected.Development_Name) 

 

Best Regards.

Yumia

d3ell
Level: Powered On

Re: Filter a Gallery from a dropdown list

Yes! Lookup! - wish id thought of that! - Thanks very much for your input! Much appreciated! 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 57 members 4,140 guests
Please welcome our newest community members: