<?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: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/25395.aspx</link><pubDate>Thu, 03 Jan 2008 22:37:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25395</guid><dc:creator>Swanee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25395</wfw:commentRss><description>&lt;p&gt;Worked like a charm. Thanks!&lt;/p&gt;</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8128.aspx</link><pubDate>Mon, 17 Apr 2006 16:26:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8128</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8128.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8128</wfw:commentRss><description>Hi Marien,&lt;br /&gt;&lt;br /&gt;The code example given is in C#.NET, which is managed code. You are using JScript.  The equivalent in JScript would be as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;var oNodeList = XDocument.DOM.selectNodes("my:myFields/my:group1/my:group2");&lt;br /&gt;&lt;br /&gt;var oNode;&lt;br /&gt;&lt;br /&gt;while( (oNode = oNodeList.nextNode()) != null )&lt;br /&gt;{&lt;br /&gt;if( oNode.nodeType == 1 )&lt;br /&gt;{&lt;br /&gt;var oField = oN.selectSingleNode("my:field1");&lt;br /&gt;XDocument.UI.Alert(oField.text);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;See this link for further info on nodeType:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/039aa2c8-2414-43e8-82cf-3e056eebb2f4.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/039aa2c8-2414-43e8-82cf-3e056eebb2f4.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8127.aspx</link><pubDate>Mon, 17 Apr 2006 14:09:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8127</guid><dc:creator>Mairen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8127</wfw:commentRss><description>I have a similar problem, but when I tried to use the example code on a new form I got the following message:&lt;br /&gt;&lt;br /&gt; &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;InfoPath cannot open the selected form because of an error in the form's code.&lt;br /&gt;The following error occurred:&lt;br /&gt;&lt;br /&gt;Expected ';'&lt;br /&gt;File:script.js&lt;br /&gt;Line:26&lt;br /&gt;	IXMLDOMNodeList oNodeList = thisXDocument.DOM.selectNodes("my:myFields/my:group1/my:group2");&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;There's not actually any missing ;s as far as I can tell.  Any idea what might cause this?  Where did you put your code?  Behind a button?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8126.aspx</link><pubDate>Mon, 31 Oct 2005 14:09:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8126</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8126</wfw:commentRss><description>Why do you have to put in "if (oNodeList.length&amp;gt;0)" - shouldn't the foreach only run if  that condition is true? It seems like you're stating something explicitly that is implied in the foreach statement... I'm confused.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8125.aspx</link><pubDate>Sun, 30 Oct 2005 23:29:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8125</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8125</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;To loop through your nodes, use something like:&lt;br /&gt;&lt;br /&gt;IXMLDOMNodeList oNodeList = thisXDocument.DOM.selectNodes("my:myFields/my:group1/my:group2");&lt;br /&gt;if (oNodeList.length&amp;gt;0)&lt;br /&gt;{&lt;br /&gt;  foreach (IXMLDOMNode oN in oNodeList)&lt;br /&gt;  {&lt;br /&gt;    if( oN.nodeType == DOMNodeType.NODE_ELEMENT )&lt;br /&gt;    {&lt;br /&gt;      IXMLDOMNode oField = oN.selectSingleNode("my:field1");&lt;br /&gt;      thisXDocument.UI.Alert(oField.text);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8124.aspx</link><pubDate>Sun, 30 Oct 2005 22:34:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8124</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8124</wfw:commentRss><description>Thanks franck. I was hoping for an easier way out. But I am exploring your suggestion. Can you also tell me the syntax on how to check whether I have reached the last row of the repeating table as I am implementing a FOR or do-until loop? Thanks again!</description></item><item><title>Re: Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/8123.aspx</link><pubDate>Fri, 28 Oct 2005 13:10:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8123</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8123</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Did you try to use code to do this?&lt;br /&gt;You can refer to a specific field on the nth row of your table using code such as:&lt;br /&gt;IXMLDOMNode oNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[n]/my:field1");&lt;br /&gt;&lt;br /&gt;Hope that it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Comparing rows of a repeating section or table</title><link>https://www.infopathdev.com:443/forums/thread/5061.aspx</link><pubDate>Fri, 28 Oct 2005 05:30:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5061</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5061</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;My form has a repeating section that allows users to insert rows. Each row requires a FromDate and a ToDate. What is the easiest way to evalutes the values from one row to another row? eg, I want to validate the rows so that no FromDate equals to another FromDate on another row. Thanks!</description></item></channel></rss>