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

Up for a challenge - 2 lists - Filtering and multiselect choice boxes

Hi,

 

Ok, I hope this is going to be a challenge and not turn out to be something really simple.  I am working in SharePoint and I am trying to grab data in one format from one list and convert it into another format into another list....I've used Excel in the images just because it's easier to show the layout.

 

List 1 - Company Details

 

pa-1.jpg

As you can see that each company has more than one site assoicated with it, the columns are all formatted "single line of text".

 

List 2 - Company Overview

 

pa-2.jpg

So in this list I have columns with the same names but the "Site Names" in this case is a multi select choice column, the idea is that you can see all the sites assoicated with the selected company at a glance.

 

Now here is what I am trying to do, I am customising the form on List 2, the "Company name" data card is linked to List 1 and has a filter/distinct function associated to a "Drop down" control.  


For "Site Names" I want to again query List 1 and pulling on "Site Name" column but I'd like the output filtered on the result of the drop down from "Company" (that bit I can do) however I then want to display all the "Site Names" that are associated with that company and present them as multi select options which will then be saved to the "Site Names" column on List 2 (which is a multi select choice column).  As I write this I think I might be asking for a bit too much of the system but hey it's worth an ask to the community to just to check I've not gone completely mad!

 

Thanks

Rob

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Up for a challenge - 2 lists - Filtering and multiselect choice boxes

Hi @Rob_CTL ,

 

Do you want to save the multiple choices into list2 based on your dropdown seletect Company Name?

I think you can try the following workaround,I test as next:

 

Unlock the datacards and insert one Dropdown Control into Company Name_DataCard1 and insert one ComboBox control into Site Names_DtaCard1,and then,

Dropdown1.ItemsSmiley Very Happyistinct('20190312companydetails','Company Name')   ('20190312companydetails' is my sp list name, you can change to yours on your side)

Company Name_DataCard1.UpdateSmiley Very Happyropdown1.Selected.Value

ComboBox1.ItemsSmiley Very Happyistinct(Filter('20190312companydetails', 'Company Name' = Dropdown1.Selected.Value), 'Site Name')

Site Names_DataCard1.Update:{'@odata.type' :"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: Concat(ComboBox1.SelectedItems,Result&",")}

20190312filteringandmultiselectchoiceboxes2.PNG

 

Result Test:

20190312filteringandmultipleselectchoicegif1.gif

 

 

 

Hope this could be helpful.

 

Best Regards.

Yumia

 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Up for a challenge - 2 lists - Filtering and multiselect choice boxes

Hi @Rob_CTL ,

 

Do you want to save the multiple choices into list2 based on your dropdown seletect Company Name?

I think you can try the following workaround,I test as next:

 

Unlock the datacards and insert one Dropdown Control into Company Name_DataCard1 and insert one ComboBox control into Site Names_DtaCard1,and then,

Dropdown1.ItemsSmiley Very Happyistinct('20190312companydetails','Company Name')   ('20190312companydetails' is my sp list name, you can change to yours on your side)

Company Name_DataCard1.UpdateSmiley Very Happyropdown1.Selected.Value

ComboBox1.ItemsSmiley Very Happyistinct(Filter('20190312companydetails', 'Company Name' = Dropdown1.Selected.Value), 'Site Name')

Site Names_DataCard1.Update:{'@odata.type' :"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: Concat(ComboBox1.SelectedItems,Result&",")}

20190312filteringandmultiselectchoiceboxes2.PNG

 

Result Test:

20190312filteringandmultipleselectchoicegif1.gif

 

 

 

Hope this could be helpful.

 

Best Regards.

Yumia

 

 

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: 50 members 3,913 guests
Please welcome our newest community members: