Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2006

Tip: Looking for answers? Try searching our database.

how do I concat everything checked in a multiple selection list box?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hbnc99@gmail.com - 31 Dec 2006 15:56 GMT
Hello and Happy New Year to all.

One of my forms populates key words within the text of another
letter-like form.
I need to take all selections in a multiple selection list box and have
them display in another text box  as a list separated by commas
concatted to a boilerplate phrase.

When I concat this control with the phrase, all that's picked up is the
first box checked and no more.

Thanks for any and all help with this. I'm new to Infopath, so please
keep it as simple as you can for me.

Mike
Marcel - 31 Dec 2006 18:25 GMT
Happy New Year to you also,

I place a button and a multiple list box (name mlb) on a empty form. Added
some jscript code:

function CTRL5_5::OnClick(eventObj) {
   var multipleListBoxField = XDocument.DOM.selectSingleNode("//my:mlb");
   var groupField =
XDocument.DOM.selectNodes("/my:myFields/my:group1/my:mlb");
   for (i=0; i< groupField.length; i++) {
       //Obtain the item. var item = groupField.item(i);
       XDocument.UI.Alert(item.text); // here change to do with the values
what ever you want..
   }
}

You now can access all the values selected in the multiple list box and do
with it whatever you want..

Regards,

Marcel

> Hello and Happy New Year to all.
>
[quoted text clipped - 11 lines]
>
> Mike
mptrauber - 31 Dec 2006 19:17 GMT
Thanks much, but I'm probably a year away from the proficiency level
that would allow me to take advantage of your kind advice.

I apologize, but I still need instruction on the "open this, click
that" level.

Thanks

> Happy New Year to you also,
>
[quoted text clipped - 34 lines]
> >
> > Mike

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.