<?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: Repeating table Button fails</title><link>https://www.infopathdev.com:443/forums/thread/13540.aspx</link><pubDate>Sat, 03 Sep 2005 05:43:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13540</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13540</wfw:commentRss><description>Looks like you are using thisXDocument instead you should use "XDocument" in the script.&lt;br /&gt;Your code should look like this&lt;br /&gt;&lt;br /&gt;dim oNode &lt;br /&gt;set oNode = XDocument.DOM.selectSingleNode("//my:repeatingtable1")&lt;br /&gt;&lt;br /&gt;I dont think you can declare object types in the script, mainly the way you have declared. &lt;br /&gt;For ex:- "IXMLDOMNode row" is not allowed in script.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Repeating table Button fails</title><link>https://www.infopathdev.com:443/forums/thread/13539.aspx</link><pubDate>Fri, 02 Sep 2005 22:42:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13539</guid><dc:creator>Kiptodd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13539.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13539</wfw:commentRss><description>Patrick-&lt;br /&gt;Line 21 is &lt;br /&gt;&lt;br /&gt;IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("//my:repeatingtable1")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kip Bautista&lt;br /&gt;KTB Dezines&lt;br /&gt;KTBDezines@netscape.net</description></item><item><title>Re: Repeating table Button fails</title><link>https://www.infopathdev.com:443/forums/thread/13538.aspx</link><pubDate>Fri, 02 Sep 2005 21:54:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13538</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13538</wfw:commentRss><description>What is line 21?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Repeating table Button fails</title><link>https://www.infopathdev.com:443/forums/thread/12553.aspx</link><pubDate>Fri, 02 Sep 2005 18:16:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12553</guid><dc:creator>Kiptodd</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12553</wfw:commentRss><description>The "insert item" code on a repeating is as listed below;&lt;br /&gt;I have disabled this option from the repeat1ng table and added a button, then applied the same code to the button and it fails.&lt;br /&gt;&lt;br /&gt;I get a runtime error: &lt;br /&gt;The following error occurred:&lt;br /&gt;&lt;br /&gt;Object required: 'thisXDocument'&lt;br /&gt;File:script.vbs&lt;br /&gt;Line:21&lt;br /&gt;&lt;br /&gt;Why? what am I missing?&lt;br /&gt;&lt;br /&gt;***************************************************************&lt;br /&gt;Sub CTRL8_5_OnClick(eventObj)&lt;br /&gt;' get a reference to the node the repeating table is bound to&lt;br /&gt;IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("//my:repeatingtable1")&lt;br /&gt;' make a copy of the node by cloning it&lt;br /&gt;row = row.cloneNode(true)&lt;br /&gt;' set the new values of the row#%92s fields&lt;br /&gt;row.selectSingleNode("my:field1").text = "new row field 1"&lt;br /&gt;row.selectSingleNode("my:field2").text = "new row field 2"&lt;br /&gt;row.selectSingleNode("my:field3").text = "new row field 3"&lt;br /&gt;' append the cloned row to the parent node&lt;br /&gt;IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode("/my:myFields")&lt;br /&gt;parent.appendChild(row)&lt;br /&gt;End Sub&lt;br /&gt;*************************************************************&lt;br /&gt;&lt;br /&gt;Kip Bautista&lt;br /&gt;KTB Dezines&lt;br /&gt;KTBDezines@netscape.net</description></item></channel></rss>