cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Listbox populate other listbox from SharePoint lookup table

Thanks fo rall your help, getting better but not there yet. Have read and tried quite a few differnt posts but none have worked.

 

Issue: Populate 2nd listbox from 1st listbox selection filtered from SharePoint list.

SP lists:

Project (populates lstProjects.Items = Projects.Title

SupplierContractors  Want to poplulate based on lstProjects.Selected, but filtered by SharePoint list LookupProjectSupplierContractors and only show SupplierContractors where Project=lstProjects.

 

Tried this:

Filter(
Choices('Supplier Contractor'.Title);
Value in Filter(LookupProjectSupplierContractor, Project = ListBox1.Selected).Title)

 

Attached image PowerAppView explains...

2 REPLIES 2
Highlighted
Super User
Super User

Re: Listbox populate other listbox from SharePoint lookup table

@dthope69you will want to filter your second list from the choice in the first.

First list is lstProjects and has Items set to Projects.Title

 

You will want your 2nd listbox to have this for its Items property:

  Filter('Supplier Contractor', Title in Filter(LookupProjectSupplierContractor, Project = ListBox1.Selected).Title)

 

Okay - all good but...are these columns really text columns, or are they lookup columns?  If they are lookup columns then this will not work you will need to base your filters on the Id's not the Titles.  

And, if they are string columns, then wouldn't the LookupProjectSupplierContractor list already have the value you are looking for?  If it really is string columns, then you are using the string value of the Contractor (let's say 'ABC Co') to then find the referenced title in the Supply Contractor list so that you can return the Title ('ABC Co')...they are one and the same.

 

Hope this helps some.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Helper I
Helper I

Re: Listbox populate other listbox from SharePoint lookup table

Hello, yes the columns SupplierContractor and Project are both lookup columns the the list LookupProjectSupllierContractor. These two columns (SupplierContractor and Project) come from the lists Projects with Id and Title, and ProjectSuppliers with Id and Title.

 

Tried different things with what you sent, no luck...

LookupProjectSupplierContractors settings attached...

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,035)