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

View solution in original post

3 REPLIES 3
shailendra74
Level 10

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

View solution in original post

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
thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,899)