<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Select All for Multi-Select List Box</title><link>https://www.infopathdev.com:443/forums/thread/62471.aspx</link><pubDate>Tue, 21 Dec 2010 16:29:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62471</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62471</wfw:commentRss><description>&lt;p&gt;Believe it or not,&amp;nbsp;this is the first time I can recall coming across this question.&amp;nbsp;Multi-select listboxes do not seem to be terribly popular.&lt;/p&gt;
&lt;p&gt;The reason your form won&amp;#39;t open is that you&amp;#39;re using VBScript, but the code you&amp;#39;re borrowing is written for VB.NET on the InfoPath 2007 object model.&amp;nbsp; Are you and your form users restricted to using IP 2003?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Accomplishing this is somewhat tricker in VBScript and converting code from the 2007 OM to 2003 is not a straightforward process.&lt;/p&gt;
&lt;p&gt;This forum is generally provided for assistance with InfoPath&amp;#39;s built-in features and we do provide quick troubleshooting of code written for InfoPath, but not new code written from scratch.&amp;nbsp; We do provide &lt;a href="http://www.qdabra.com/en/consulting.aspx"&gt;consulting services &lt;/a&gt;with several InfoPath MVPs, including myself, and would be happy to provide you with a quality solution should you wish to go that route.&lt;/p&gt;</description></item><item><title>Re: Select All for Multi-Select List Box</title><link>https://www.infopathdev.com:443/forums/thread/62466.aspx</link><pubDate>Tue, 21 Dec 2010 15:01:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62466</guid><dc:creator>bderossett</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62466</wfw:commentRss><description>&lt;p&gt;Hi Patrick.&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&amp;nbsp; I know what you mean about her forum.&amp;nbsp; I would have posted my question there if I could.&amp;nbsp; On the same note, do you have any suggestions on how to create code that will select all items in a multi-select list box?&amp;nbsp; Whatever is going on (really, not going on), it has something to do with the XPathNavigator lines.&amp;nbsp; I just can&amp;#39;t get the form to open whenever those lines are active in the code.&amp;nbsp; What&amp;#39;s really frustrating is that this code seems similar to other examples I&amp;#39;ve seen.&amp;nbsp; I&amp;#39;m using VBScript (don&amp;#39;t have access to VSTA).&lt;/p&gt;
&lt;p&gt;This seems like wanting to have a &amp;quot;select all&amp;quot; option for the multi-select list box&amp;nbsp;would be a typical question, but I haven&amp;#39;t found an adequate solution yet.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Select All for Multi-Select List Box</title><link>https://www.infopathdev.com:443/forums/thread/62460.aspx</link><pubDate>Tue, 21 Dec 2010 12:47:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62460</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62460</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s too bad that S.Y.M.Wong doesn&amp;#39;t have her own forum. We get asked to answer many questions regarding her blog. :) &lt;/p&gt;
&lt;p&gt;Sometimes she graces this site and answers questions. Unfortunately, we don&amp;#39;t support other blogs because not all of them use best practices.&lt;/p&gt;
&lt;p&gt;Sorry about that!&lt;/p&gt;</description></item><item><title>Select All for Multi-Select List Box</title><link>https://www.infopathdev.com:443/forums/thread/62432.aspx</link><pubDate>Mon, 20 Dec 2010 15:46:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62432</guid><dc:creator>bderossett</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62432</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to add a button to a form that will select all items in a multi-select list box.&amp;nbsp; The list box itself is buried in a repeating section.&amp;nbsp; I found &lt;a class="" title="this article" href="http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm" target="_blank"&gt;this article&lt;/a&gt; and tried to modify it for my purposes.&amp;nbsp; However, I&amp;#39;m getting the &amp;quot;InfoPath cannot open the selected form&amp;quot; error.&amp;nbsp; I know my problem deals with the syntax that I&amp;#39;ve put in &lt;strong&gt;bold&lt;/strong&gt; below, but I don&amp;#39;t know how to change it.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks.&lt;/p&gt;
&lt;p&gt;Sub CTRL77_5_OnClick(eventObj) &lt;/p&gt;
&lt;p&gt;Dim divisions(16)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;divisions(0)=&amp;quot;Canada&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(1)=&amp;quot;Corporate&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(2)=&amp;quot;ES&amp;amp;P (Clark)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(3)=&amp;quot;ES&amp;amp;P (DIA)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(4)=&amp;quot;ES&amp;amp;P (EM)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(5)=&amp;quot;ES&amp;amp;P (SVS)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(6)=&amp;quot;ES&amp;amp;P (TRS)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(7)=&amp;quot;ES&amp;amp;P (Worksite)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(8)=&amp;quot;INV&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(9)=&amp;quot;IS&amp;amp;R (Spread)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(10)=&amp;quot;IS&amp;amp;R (TCM)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(11)=&amp;quot;L&amp;amp;P (ADMS)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(12)=&amp;quot;L&amp;amp;P (AFP)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(13)=&amp;quot;L&amp;amp;P (LTC)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(14)=&amp;quot;L&amp;amp;P (MNL)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(15)=&amp;quot;L&amp;amp;P (Payout)&amp;quot;&lt;/p&gt;
&lt;p&gt;divisions(16)=&amp;quot;REI (TARe)&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;For Each x in divisions&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Dim root As XPathNavigator = MainDataSource.CreateNavigator()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dim group1 As XPathNavigator = root.SelectSingleNode(&amp;quot;//my:group1/my:Grp_Reporting_Period/my:Grp_Division&amp;quot;, NamespaceManager) &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dim field1 As XPathNavigator = root.SelectSingleNode(&amp;quot;//my:group1/my:Grp_Reporting_Period/my:Grp_Division/my:Division_Choice&amp;quot;, NamespaceManager) &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Dim newNode As XPathNavigator = field1.Clone() &lt;/p&gt;
&lt;p&gt;newNode.SetValue(x) group1.AppendChild(newNode) &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Next &lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>