<?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: Get entire dropdown list items into an array in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/89887.aspx</link><pubDate>Fri, 17 May 2013 15:43:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89887</guid><dc:creator>Artois</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89887</wfw:commentRss><description>&lt;p&gt;I have tried to use XPathNodeIterator.&amp;nbsp; But for reasons I can figure out, the XPathNodeIterator object only&amp;nbsp;able&amp;nbsp;to provide&amp;nbsp;the first two values&amp;nbsp;in&amp;nbsp;the list.&amp;nbsp;&amp;nbsp;So&amp;nbsp;in the interest of saving time, I had to make a query direct to the the database and looped&amp;nbsp;through the dataset.&amp;nbsp;&amp;nbsp;&amp;nbsp;At least I know XPathNodeIterator was the right way to go.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Get entire dropdown list items into an array in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/89883.aspx</link><pubDate>Fri, 17 May 2013 14:47:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89883</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89883</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You need an XPathNodeIterator - &lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnodeiterator.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnodeiterator.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I think the forum is fussy about browsers when it comes to line breaks and so forth - what browser are you using?&lt;/p&gt;</description></item><item><title>Re: Get entire dropdown list items into an array in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/89873.aspx</link><pubDate>Fri, 17 May 2013 09:32:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89873</guid><dc:creator>Artois</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89873</wfw:commentRss><description>Sorry I&amp;#39;m not able to get any carriage returns in my post.
Everything appears in the same line.</description></item><item><title>Get entire dropdown list items into an array in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/89872.aspx</link><pubDate>Fri, 17 May 2013 09:25:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89872</guid><dc:creator>Artois</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89872</wfw:commentRss><description>I have an InfoPath XSN form template with a dropdown list. This is bound at design time to a data source and populated with a list of names when the form is loaded.          

I would like to get hold of all of the names in this dropdown list into an array for processing elsewhere on that form. I have tried to get hold of a reference to the dropdown list as below (and similar variations);          

XPathNavigator myNav = this.MainDataSource.CreateNavigator();    
object dd = myNav.Select(&amp;quot;/dfs:myFields/dfs:queryFields/q:Site/@STitle&amp;quot;, this.NamespaceManager).Current;              

But I&amp;#39;m only getting the current value and not able to get hold of the entire list.                
Any one able to help please?</description></item></channel></rss>