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 / October 2007

Tip: Looking for answers? Try searching our database.

Infopathh Multi-Selection List Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chris geier - 17 Oct 2007 19:21 GMT
Greetings,

I have an IP form using a dataconnection to populate a Multi-selection
listbox with options.  Then when finished filling out the form they submit
the form to a webservice where we parse the XML.  However the values IP
stores for this list box is something like

Value1, Value2 etc.

But we need the actuall values that were selected from the datasource.  I
have seen a few articles on how to do this but have not been able to get
them to work. I believe because of the fact that the options are being
populated by another dataconnection.

Ideas?
S.Y.M. Wong-A-Ton - 18 Oct 2007 10:40 GMT
What do you mean with "actual values"? What you are currently getting are the
actual values. :)  Or do you mean the display names? And how are you
submitting to the web service? Through code? And which articles did you read?
---
S.Y.M. Wong-A-Ton

> Greetings,
>
[quoted text clipped - 11 lines]
>
> Ideas?
chris geier - 18 Oct 2007 14:55 GMT
Display names I guess is what I mean.  Submitting to the webservice via code
yes.

Here are some of the links i read

http://blogs.msdn.com/trobbins/archive/2007/09/04/infopath-2007-and-the-multi-se
lect-list-box.aspx


http://www.sharepointblogs.com/ssa/archive/2007/09/08/populating-multiselect-lis
t-box-in-infopath-2007-web-forms-programmatically.aspx


http://www.infopathdev.com/forums/p/3915/15172.aspx#15172

> What do you mean with "actual values"? What you are currently getting are
> the
[quoted text clipped - 20 lines]
>>
>> Ideas?
chris geier - 19 Oct 2007 16:54 GMT
Did this help?
> Display names I guess is what I mean.  Submitting to the webservice via
> code yes.
[quoted text clipped - 32 lines]
>>>
>>> Ideas?
S.Y.M. Wong-A-Ton - 22 Oct 2007 04:24 GMT
Sorry, Chris. Things get hectic sometimes and I'm not able to respond as
quickly as I would like to.

I had a quick look at the links. What you need to do is retrieve the value
of the multi select list box. This will contain the selected values separated
by commas. Use the Split() function to split those values up and put them
into an array (one of the articles show how to do this). Once you've done
this, you can loop through the array. For each item, you must them do a
lookup in the secondary data source that is bound to the multi-select list
box and use the value of the item to retrieve its display name. You can
retrieve the secondary data source using
DataSources[<sec_ds_name>].CreateNavigator() and then use a SelectSingleNode
with an XPath expression that contains a filter on the value to find the
display name.
---
S.Y.M. Wong-A-Ton

> Did this help?
> > Display names I guess is what I mean.  Submitting to the webservice via
[quoted text clipped - 33 lines]
> >>>
> >>> Ideas?
 
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.