<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: JScript operators</title><link>https://www.infopathdev.com:443/forums/thread/22905.aspx</link><pubDate>Thu, 06 Sep 2007 16:17:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22905</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22905</wfw:commentRss><description>&lt;p&gt;I cannot delete this post but I have found out where the probem was. Firstly I changed the statement to include more brackets...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if ( (3rdIDfield.nodeTypedValue == 2ndIDfield.nodeTypedValue) &amp;amp;&amp;amp; (3rdIDfield.nodeTypedValue !== &amp;quot;&amp;quot;)) &lt;/p&gt;
&lt;p&gt;I created a variable to ascertain the ID for the cloned row:&lt;br /&gt;&amp;nbsp;var 2ndIDfield = 2ndList.item(x).selectSingleNode(&amp;quot;my:2ndItemID&amp;quot;);&lt;br /&gt;Then I set the value of the ID of the cloned row to the next unique ID:&lt;br /&gt;&amp;nbsp;2ndList.item(x).selectSingleNode(&amp;quot;my:2ndItemID&amp;quot;).nodeTypedValue = newWorkItemID;&lt;/p&gt;
&lt;p&gt;My subsequent for...if statements compared the value of the variable 2ndIDfield.nodeTypedValue. I expected this variable to retain the original value and not retain reference to the actual node thereby altering as I changed the values within the cloned row.&lt;/p&gt;
&lt;p&gt;Well i know this now, and apologies if this rambling makes no sense.....&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>JScript operators</title><link>https://www.infopathdev.com:443/forums/thread/22899.aspx</link><pubDate>Thu, 06 Sep 2007 11:03:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22899</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22899.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22899</wfw:commentRss><description>&lt;p&gt;I have programmatically cloned a row from a repeating table which has repeating tables&amp;nbsp;nested within with a structure as follows:&lt;/p&gt;
&lt;p&gt;my:firstgroup/my:firstrepeatinggroup/my:secondgroup/my:secondrepeatinggroup/my:thirdgroup/my:thirdrepeatinggroup&lt;/p&gt;
&lt;p&gt;My clone node works but I then need to iterate through each row of the clone to change a UID value. This value is repeated for each row&amp;nbsp;of the nested repeating tables also. IE within my:firstrepeatinggroup/my:1stid&amp;nbsp; my:secondrepeatinggroup/my:2ndid etc. I have managed to iterate successfully through the first and second levels but my if statement seems to fail me on the third:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if ( 3rdIDfield.nodeTypedValue == 2ndIDfield.nodeTypedValue &amp;amp;&amp;amp; 3rdIDfield.nodeTypedValue !== &amp;quot;&amp;quot;) &lt;/p&gt;
&lt;p&gt;If I understand this correct if the 3rdIDfield is not blank and is the same as 2ndIDfield then returns true. But alas no! Can someone help me out here?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>