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 / April 2006

Tip: Looking for answers? Try searching our database.

List Box & Multiple selections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 27 Mar 2006 17:25 GMT
Is it possible to have a list box & make multiple selections?  

For example, The list box pulls the data from the data source and it
contains a field for each hour of the day.  The user then needs to make
multiple selections, i.e. 0100, 0300 & 0500 & be able to submit it to the
same data source.

If this is possible, how do I go about setting that up?

tia for any and all assistance.
Krishna - 27 Mar 2006 18:07 GMT
No InfoPath 2003 does not provide built-in support for Multi-select list
boxes, you would need setup it manually with a scrolling region, take a look
at the blog post by the InfoPath team for a sample
http://blogs.msdn.com/infopath/archive/2004/04/01/106039.aspx The next
vesion does have built-in support for Multiselect list boxes.

Thanks,
Krishna

> Is it possible to have a list box & make multiple selections?
>
[quoted text clipped - 6 lines]
>
> tia for any and all assistance.
Jeff - 27 Mar 2006 20:37 GMT
Thanks Krishna,  That will work.

Jeff

> No InfoPath 2003 does not provide built-in support for Multi-select list
> boxes, you would need setup it manually with a scrolling region, take a look
[quoted text clipped - 15 lines]
> >
> > tia for any and all assistance.
sscarcella - 29 Mar 2006 18:17 GMT
I have read this blog but it doesnt say how to connect the multiple
selections to your data source and have them entered in as new records in the
database when you hit submit.  It only works with static lists.  I also need
to have this list be a cascading list of a previous dropdown selection.

Any ideas on that...  It would have been easier if the list box would just
allow multi selection...

> No InfoPath 2003 does not provide built-in support for Multi-select list
> boxes, you would need setup it manually with a scrolling region, take a look
[quoted text clipped - 15 lines]
> >
> > tia for any and all assistance.
Tom Lum Forest - 13 Apr 2006 18:09 GMT
Here's how I did it:

Dim strategyNodes As IXMLDOMNodeList =
thisXDocument.DataObjects("LocalCommWKSLookups").DOM.selectNodes("//Strategies")
               Dim numStrategies As Integer = strategyNodes.length
               If numStrategies > 0 Then
                   For countStrategies As Integer = 0 To numStrategies - 1
                       If countStrategies <> 0 Then
thisXDocument.View.ExecuteAction("xCollection::insert", "Strategy_773")
                       Dim strategyNode As IXMLDOMNode =
strategyNodes.Item(countStrategies)
                       Dim NewStrategyNameNode As IXMLDOMNode = _
                       
thisXDocument.DOM.selectNodes("my:myFields/my:Strategies/my:Strategy/my:StrategyName").Item(countStrategies)
                       NewStrategyNameNode.text =
strategyNode.selectSingleNode("StrategyName").text
                       Dim NewStrategyIDNode As IXMLDOMNode = _
                       
thisXDocument.DOM.selectNodes("my:myFields/my:Strategies/my:Strategy/my:StrategyID").Item(countStrategies)
                       NewStrategyIDNode.text =
strategyNode.selectSingleNode("StrategyID").text
                   Next
               End If

> I have read this blog but it doesnt say how to connect the multiple
> selections to your data source and have them entered in as new records in the
[quoted text clipped - 23 lines]
> > >
> > > tia for any and all assistance.
 
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.