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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,749)