<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Looping thru a Infopath 2003 listbox using JS</title><link>https://www.infopathdev.com:443/forums/thread/43509.aspx</link><pubDate>Fri, 26 Jun 2009 14:40:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43509</guid><dc:creator>kennebg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43509.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43509</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have been searching for a week now to find an answer to this.&amp;nbsp; It cannot be that hard and it looks like in Infopath 2007 there are tools to make it easier but I have to use Infopath 2003 so any help would be awesome.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a listbox, doesn&amp;#39;t have to be a list box but for the moment it is a listbox that is bound to a filtered secondary data source which is a Sharpoint Form Library.&amp;nbsp; I have all the columns I need exposed,&amp;nbsp; The filter is based on a field on the current&amp;nbsp;form.&lt;/p&gt;
&lt;p&gt;What I need to do is loop-thru the list box after it populates using Infopath 2003 JS.&amp;nbsp; The looping would be triggered by a button that is already performing some other actions.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I know this can&amp;#39;t be that hard and I have found numerous examples of doing this but it&amp;#39;s always based on VB or C# and/or is using commands like the navigator object which I don&amp;#39;t believe is available in Infopath 2003?&lt;/p&gt;
&lt;p&gt;I know I need to count the items in the listbox first and the perform some time of FOR LOOP but I just can&amp;#39;t seem to get it right. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance for your help!!!&lt;/p&gt;</description></item></channel></rss>