cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SteveDK
Frequent Visitor

Concat Combox selected items

Hi all.

I hope you could help me out with getting the results from a ComboBox1?

I have a table called 'BLB Numbers' with 2 columns, 'Title' (where the customer numbers are stored) and 'Bill-to Customer Name'.
I'm using a ComboBox1 to select multiple customer numbers in the Title column and what I try to do is to get the Bill-to Customer Name's by the selected customer numbers from the ComboBox1.

SteveDK_1-1635066984992.png


Thank you,
Steve

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @SteveDK ,

Assuming Title is also the output (.Selected.Title) of the Combo Box - on the OnChange

Clear(colNames);
ForAll(
   Self.SelectedItems As aLU,
   Collect(
      colNames,
	  {
	     CustName:
	     Lookup(
             'BLB Numbers',
             Title = aLU.Title,
         ).CustomerNameField
      }
   )
)

then the Default of your bottom box

Concat(
   colNames,
   CustName & ","
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @SteveDK ,

Assuming Title is also the output (.Selected.Title) of the Combo Box - on the OnChange

Clear(colNames);
ForAll(
   Self.SelectedItems As aLU,
   Collect(
      colNames,
	  {
	     CustName:
	     Lookup(
             'BLB Numbers',
             Title = aLU.Title,
         ).CustomerNameField
      }
   )
)

then the Default of your bottom box

Concat(
   colNames,
   CustName & ","
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Thank you @WarrenBelz 

It really did the job and exactly what I was looking for. 👌

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,116)