<?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>nextNode() or cloneNode()</title><link>https://www.infopathdev.com:443/forums/thread/57651.aspx</link><pubDate>Wed, 04 Aug 2010 22:21:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57651</guid><dc:creator>AzuDaioh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57651</wfw:commentRss><description>&lt;p&gt;Hi Everyone, I&amp;#39;m hoping someone could help me out. I&amp;#39;m a noob with codes.&amp;nbsp; I found these from various sources and I couldnt figure out why a function stopped working after I added&amp;nbsp;a new similar function.&amp;nbsp;&amp;nbsp;They could be conflicting but I dont know why. The code works before I started the other function. But when I try to complete another form, it gives me an error message regarding this line of code. Something to do with &amp;#39;null is null or not an object&amp;#39;. This is the line that is being pointed out by the error message: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;var oNewRow2 = oSampleRow2.cloneNode(true);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Basically, I have 3 repeating table in my form:&lt;br /&gt;#1 - Payment Records: this must maintain the original data so I clone this into another repeating table (#2)&lt;br /&gt;#2 - Overpayment Details: this repeating table contains data from #1 but with additional columns to calculate the overpayment. The reason for cloning table#1 is because sometimes we need to split 1 payment into multiple rows to display the detailed overpayment.&amp;nbsp; Since there would be a chance of adding new rows, I cannot use the same table as #1.&lt;br /&gt;# 3 - Print Preview version: this is basically a clone of #2, all the data are identical, but I need to be able to print the table headers when printing multiple pages.&lt;/p&gt;
&lt;p&gt;------------&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Edited:&lt;/p&gt;
&lt;p&gt;I removed the functions because I solved this issue.&amp;nbsp; It was due to a control in the same section as repeating table#2 but not part of the repeating table.&amp;nbsp; After I moved the field to another group, the code worked again.&amp;nbsp; Sorry for bothering you guys.&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></channel></rss>