cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thunter
Level 8

Re: Email List Box Selected Items

I checked my other List Boxes and I see the Update property as TMWList.Selected.Value

 

So it should be this instead?

Left(Concat(TMWList.SelectedItems.Value,Concatenate(Text(Value),",")), 
Len(Concat(TMWList.SelectedItems.Value,Concatenate(Text(Value)))-1)
thunter
Level 8

Re: Email List Box Selected Items

TimRohr
Level 10

Re: Email List Box Selected Items

First, yes, you want that whole statement. It's basically a Left( thing, Len(thing)-1) construction.

 

Second, you're going to have to build it out from the inside out. Do this to really understand where all the pieces are coming from:

 

1) In the OnChange event of the ListBox, tell it to update a Context variable with the Concat() output.

UpdateContext({mySel: Concat(ListBox1.SelectedItems.myThat,Concatenate(myThat, ","))})

Like I said, "Value" might not work. You might have to choose a field name. In the example, above, I had a ListBox showing records that had two fields (myThis and myThat), with only myThat being displayed.

 

2) Add a label to the screen and assign its Text property to be the context variable you just created.

mySel

3) If you get that to work properly, you're 90% home. Just wrap either the formula or the context variable in a Left(...,Len()-1) statement to strip off the comma:

Left( mySel, Len( mySel) - 1)

Once you get it that far, you can either just leave the context variable updating in the ListBox controls and then reference the variables in your Update property, or you can move the formulas that construct the appropriate string of text into the Update property, themselves.

 

 

thunter
Level 8

Re: Email List Box Selected Items

@TimRohr

It works! Thank you!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

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!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 256 members 4,029 guests
Recent signins:
Please welcome our newest community members: