<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Solve This!...</title><link>https://www.infopathdev.com:443/forums/thread/68436.aspx</link><pubDate>Thu, 14 Jul 2011 21:46:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68436</guid><dc:creator>rhernanf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68436</wfw:commentRss><description>&lt;p&gt;You save my day, jeje&lt;/p&gt;</description></item><item><title>Re: Solve This!...</title><link>https://www.infopathdev.com:443/forums/thread/50027.aspx</link><pubDate>Thu, 17 Dec 2009 21:12:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50027</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=50027</wfw:commentRss><description>&lt;p&gt;For anyone that&amp;#39;s interested.....&lt;/p&gt;
&lt;p&gt;Problem solved.&amp;nbsp;Short answer:&amp;nbsp; Incorrect XPath notation&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was using an absolute path to refernce my controls within my&amp;nbsp;&amp;nbsp;NodeIterator while loop. Such as....&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeIterator.Current.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;//my:Comment&amp;quot;&lt;/span&gt;, NamespaceManager).Value;&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When I should of been using &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;NodeIterator.Current.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;./my:Comment&amp;quot;&lt;/span&gt;, NamespaceManager).Value;&lt;/p&gt;
&lt;p&gt;Which now&amp;nbsp;that I understand it, makes sense.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Solve This!...</title><link>https://www.infopathdev.com:443/forums/thread/50024.aspx</link><pubDate>Thu, 17 Dec 2009 18:05:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50024</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=50024</wfw:commentRss><description>&lt;p&gt;Yes...one would think so, meaning it should work. However, it doesn&amp;#39;t.&amp;nbsp; Or...I&amp;#39;m doing something wrong which could very well be the case. &lt;/p&gt;
&lt;p&gt;The form has two sections. And the XPathNodeIterator object is cycling twice as expected. ( ie...the count being 2, which is correct. However, only the data from the first section is being referenced, and thus being inserted into the database tables. So I get two rows in the database table, with each row being identical...swell!&lt;/p&gt;
&lt;p&gt;The code isn&amp;#39;t erroring out, so I know my&amp;nbsp;C# code that&amp;nbsp;gets a handle&amp;nbsp;to each control in the section is correct. It just dosen&amp;#39;t seem to advance. The XPathNodeIterator&amp;nbsp;object that is.&lt;/p&gt;
&lt;p&gt;My code &lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator myNav = MainDataSource.CreateNavigator();&lt;br /&gt;&amp;nbsp;XPathNodeIterator NodeIterator = myNav.Select(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/my:myFields/my:commentsResponseSection&amp;quot;&lt;/span&gt;, NamespaceManager);&amp;nbsp; &lt;span style="COLOR:green;"&gt;//Repeating&amp;nbsp;section&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;while&lt;/span&gt; (NodeIterator.MoveNext())&amp;nbsp; &lt;span style="COLOR:green;"&gt;//Iterate through&amp;nbsp;sections&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sComment&amp;nbsp;=&amp;nbsp;&amp;nbsp;&amp;nbsp;NodeIterator.Current.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;//my:Comment&amp;quot;&lt;/span&gt;, NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sResponse&amp;nbsp;=&amp;nbsp;&amp;nbsp;&amp;nbsp;NodeIterator.Current.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;//my:Response&amp;quot;,&amp;nbsp;&lt;font color="#000000"&gt;NamespaceManager).Value;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Some database&amp;nbsp;calls to insert the data.......&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if I have&amp;nbsp;values in my comments and responses controls in two sections such as &lt;/p&gt;
&lt;p&gt;Section 1&lt;br /&gt;----------------&lt;br /&gt;Comment one&amp;nbsp; &lt;br /&gt;Response one&lt;/p&gt;
&lt;p&gt;Section 2&lt;br /&gt;----------------&lt;br /&gt;Comment two&lt;br /&gt;Response two&lt;/p&gt;
&lt;p&gt;When the routine to insert the data completes, I have two rows in the table ( that&amp;#39;s good) but with&amp;nbsp; &amp;#39;Comment one&amp;quot; &amp;amp; &amp;quot;Response one&amp;quot;.&amp;nbsp; That&amp;#39;s not good. IN other words, I never get the &amp;quot;Comment two&amp;quot; &amp;nbsp;or &amp;quot;Response two&amp;quot; values &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Solve This!...</title><link>https://www.infopathdev.com:443/forums/thread/49990.aspx</link><pubDate>Thu, 17 Dec 2009 05:20:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49990</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49990</wfw:commentRss><description>&lt;p&gt;this code should work for repeating section, because from xml prespective it does not distinguish between a repeating table and a repeating section. so what ever code works for repeating table navigation will work for repeating section navigation also&lt;/p&gt;</description></item><item><title>Solve This!...</title><link>https://www.infopathdev.com:443/forums/thread/49975.aspx</link><pubDate>Wed, 16 Dec 2009 19:30:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49975</guid><dc:creator>turfnsurf4me</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49975</wfw:commentRss><description>&lt;p&gt;Okay...whomever can help me out with this one ( a viable solution ) will forever be held in the utmost highest esteem in my mind concerning Infopath..lol&lt;/p&gt;
&lt;p&gt;I have a web enabled form. The form&amp;nbsp;has a repeating section. In the repeating section, there is a textbox, date-picker control, and another textbox. The values of the form are written to a SQL Server database when the form is submitted. &lt;/p&gt;
&lt;p&gt;The values of the repeating section submit to the database just fine when there is one section. &lt;strong&gt;&lt;u&gt;How&lt;/u&gt;&lt;/strong&gt; in the blazes do I reference programmatically ( C# ) additional sections the user may create, let alone each control in the n-number of sections, so I can submit the data contained in the controls for each section?&amp;nbsp; Boy that was a mouth-full..lol.&amp;nbsp; Understand?&lt;/p&gt;
&lt;p&gt;Wondering....... I&amp;#39;ve seen countless articles on how to iterate through a repeating tables. Examples such as&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator myNav = MainDataSource.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator NodeIterator = myNav.Select(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/my:TimeCard/my:EmployeeSection/my:ProjectSection/my:Project&amp;quot;&lt;/span&gt;, NamespaceManager);&lt;span style="COLOR:green;"&gt;//Repeating table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator myNode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="COLOR:blue;"&gt;while&lt;/span&gt; (NodeIterator.MoveNext())&amp;nbsp; &lt;span style="COLOR:green;"&gt;//Iterate through table&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myNode = NodeIterator.Current.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProjectName = myNode.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;my:ProjectName&amp;quot;&lt;/span&gt;, NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HoursWorked = myNode.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;my:phTotal&amp;quot;&lt;/span&gt;, NamespaceManager).Value;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;ProjectName = &amp;quot;&lt;/span&gt; + ProjectName + &lt;span style="COLOR:#a31515;"&gt;&amp;quot;\nHoursWorked = &amp;quot;&lt;/span&gt; + HoursWorked); &lt;span style="COLOR:green;"&gt;//NodeIterator.Current.el.Value);&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m wondering if I could just replace the reference to the repeating table with my repeating Section? And then get a handle to my controls in the section?... duuuuh huuuh!... lol.&amp;nbsp; Ya think?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>