<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33803.aspx</link><pubDate>Mon, 03 Nov 2008 15:12:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33803</guid><dc:creator>Dodge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33803</wfw:commentRss><description>&lt;p&gt;That is correct, I am using a data source from a database.&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XmlNamespaceManager&lt;/font&gt;&lt;font size="2"&gt; ns = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager;&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; xn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; xNodeSet = xn.Select(&lt;br /&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:GroupAssignment/my:TheGroup/my:MultiSelectControl&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, ns);&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; xNode &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; xNodeSet)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xNode.Current.SetValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;The code above is how I am trying to accomplish this since there is no clear indication in the control how this would be accomplished otherwise.&amp;nbsp; When you run this code, only the selected items are present and accounted for to be manipulated.&amp;nbsp; Doesn&amp;#39;t help.&amp;nbsp; How do you get at the items that are actually in the control, selected or not, so they can be selected or unselected using the above referenced code.&amp;nbsp; Or is there another way?&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33799.aspx</link><pubDate>Mon, 03 Nov 2008 14:53:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33799</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33799.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33799</wfw:commentRss><description>&lt;p&gt;I am not sure I am clear but I will give it a shot.&amp;nbsp; Is the data source a database?&lt;/p&gt;
&lt;p&gt;The multiselect is used as a query field?&amp;nbsp; I assume you have a short list of all the availabale item names or something and then use that to select items to retrieve details on.&lt;/p&gt;
&lt;p&gt;If you have no items in the multiselect then you would need to reset you data source back to original.&amp;nbsp; I am assuming this could be a query without any parameters or a parameter which does not return any values.&lt;/p&gt;
&lt;p&gt;You can also use a setfield action on a repeating data source and it will set the value on all rows.&amp;nbsp; So if you have a selection box in your data set then set that field true without a filter and it will set it for all rows.&lt;/p&gt;</description></item><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33798.aspx</link><pubDate>Mon, 03 Nov 2008 14:41:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33798</guid><dc:creator>Dodge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33798</wfw:commentRss><description>&lt;p&gt;Very well, my situation is this:&lt;/p&gt;
&lt;p&gt;I have inserted a multiselect in an infopath form to populate with data from a datasource.&amp;nbsp; When the multiselect populates with data, the items that populate it are unchecked by default.&amp;nbsp; That is desired and no changes are necessary up to this point.&amp;nbsp; In some cases, the items can be numerous and it would be not be desireable to have the end user have to go through each item to select all.&amp;nbsp; Therefore, I created a button that one will push to select all or deselect all.&amp;nbsp; On the button click event, I obtain the multiselect node and iterate through each item.&amp;nbsp; When I do this, the only items I have to work with are selected items, if any items are selected.&amp;nbsp; If there are no items selected, there are no items in the node to iterate through.&amp;nbsp; How am I supposed to change the items checked value if I cannot iterate through the items?&amp;nbsp; Is that more clear?&amp;nbsp; Hope that helps...&lt;/p&gt;</description></item><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33797.aspx</link><pubDate>Mon, 03 Nov 2008 14:34:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33797</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33797</wfw:commentRss><description>&lt;p&gt;You have not described what you are trying to do but usually if you are letting the user select a subset of data you are using a filter.&amp;nbsp; Unless you are using a web service InfoPath loads whole data sets.&amp;nbsp; So the options would be if checkbox is false then filter by drop down selection(s).&amp;nbsp; If checkbox is true, do not filter and show all values.&lt;/p&gt;
&lt;p&gt;If you explain what you are trying to accomplish in the form I might have a better response.&lt;/p&gt;</description></item><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33796.aspx</link><pubDate>Mon, 03 Nov 2008 14:27:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33796</guid><dc:creator>Dodge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33796</wfw:commentRss><description>&lt;p&gt;I understand, and that is the approach I took initially, but when I look at the root xml to see what i have to work with from a MultiSelect, the only item available in the xml document is the checked item, if there is any.&amp;nbsp; There&amp;nbsp;doesn&amp;#39;t appear to be&amp;nbsp;any items to iterate through to switch from 0 to 1 to indicate that they should be checked... or are you referring to doing this some other way?&amp;nbsp; Does anyone have an example of how they are doing this?&amp;nbsp; Seems like it would be a very common issue and frankly, I am surprised that it wasn&amp;#39;t baked into the control to begin with.&lt;/p&gt;</description></item><item><title>Re: MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33771.aspx</link><pubDate>Mon, 03 Nov 2008 00:01:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33771</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33771</wfw:commentRss><description>&lt;p&gt;Not in the control itself but you could have a check box beside it that the user could check. then have logic that if it is checked to interpret it as not filtering the list but showing everything.&lt;/p&gt;</description></item><item><title>MultiSelect Select All</title><link>https://www.infopathdev.com:443/forums/thread/33756.aspx</link><pubDate>Fri, 31 Oct 2008 21:52:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33756</guid><dc:creator>Dodge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33756</wfw:commentRss><description>&lt;p&gt;Is there a way to enable MultiSelect Select All using the control for the InfoPath office client, not the web client (no javascript solution)?&lt;/p&gt;</description></item></channel></rss>