List Box & Multiple selections

J

Jeff

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.
 
S

sscarcella

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...
 
T

Tom Lum Forest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top