<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28658.aspx</link><pubDate>Fri, 09 May 2008 18:31:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28658</guid><dc:creator>Pontmercy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28658</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve just found out that View doesn&amp;#39;t exist during OnLoad&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any alternative for adding rows during OnLoad??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28657.aspx</link><pubDate>Fri, 09 May 2008 18:10:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28657</guid><dc:creator>Pontmercy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28657</wfw:commentRss><description>&lt;p&gt;My issue is a different one, but relates to the same topic (inserting rows). In my case, I&amp;#39;m using VB Script and IP 2003, and&amp;nbsp;what I get is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Object required: &amp;#39;XDocument.View&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The sentence I&amp;#39;ve used for VB Script is&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;XDocument.View.ExecuteAction &amp;quot;xCollection::Insert&amp;quot;, myRepTableRow_15&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And I&amp;#39;m using XDocument in other places &lt;/p&gt;
&lt;p&gt;(e.g: XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:myRepTable/my:myRepRecord[last()]/my:repField&amp;quot;).text = var&lt;/p&gt;
&lt;p&gt;Any clue????&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28064.aspx</link><pubDate>Fri, 18 Apr 2008 13:18:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28064</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28064</wfw:commentRss><description>&lt;p&gt;First of all, when inserting rows like this its better to use &lt;em&gt;last()&lt;/em&gt;, then you are sure the last inserted row is selected. Check &lt;a href="http://www.w3schools.com/XPath/xpath_syntax.asp"&gt;http://www.w3schools.com/XPath/xpath_syntax.asp&lt;/a&gt;&amp;nbsp;for syntax.&lt;/p&gt;
&lt;p&gt;About the default value, im not sure. I&amp;#39;m thinking about two things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;The actual element/attribute doesn&amp;#39;t exist in the underlying xmldocument. Make sure it does, check Extra-&amp;gt;Default values&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Second: xsi-nil problem, more info here: &lt;a href="http://www.sharepointblogs.com/dooke/archive/2007/08/14/the-xsi-nil-attribute-the-correct-way.aspx"&gt;http://www.sharepointblogs.com/dooke/archive/2007/08/14/the-xsi-nil-attribute-the-correct-way.aspx&lt;/a&gt;. Jscript code to remove the xsi-nil attribute: if (node.attributes.getNamedItem(&amp;quot;xsi:nil&amp;quot;) != null) node.attributes.removeNamedItem(&amp;quot;xsi:nil&amp;quot;);&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;div&gt;Maybe you could try and describe the error message next time, it would sure make problem solving easier ;-)&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Albert&lt;/div&gt;</description></item><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28061.aspx</link><pubDate>Fri, 18 Apr 2008 11:58:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28061</guid><dc:creator>czbjack</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28061</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve slove the problem.&lt;/p&gt;
&lt;p&gt;var nodes = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/my:group1/my:group2&amp;quot;); &lt;/p&gt;
&lt;p&gt;nodes(0).selectSingleNode(&amp;quot;./my:ProdNum&amp;quot;).text = 123;&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;this must make sure the&amp;nbsp;textbox in the repeatingTable have defaul value.Otherwise it will receive an error message.&lt;/p&gt;
&lt;p&gt;Why?Or anyone got other solution,please tell me.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28058.aspx</link><pubDate>Fri, 18 Apr 2008 10:23:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28058</guid><dc:creator>czbjack</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28058</wfw:commentRss><description>&lt;p&gt;Albert&lt;/p&gt;
&lt;p&gt;Thanks for your quick reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve try your method,and it works well.But I have another question&amp;nbsp;here. How to set values to my rows&amp;nbsp;which I just added.&lt;/p&gt;
&lt;p&gt;Please help.....&lt;/p&gt;</description></item><item><title>Re: Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28057.aspx</link><pubDate>Fri, 18 Apr 2008 09:28:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28057</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28057</wfw:commentRss><description>&lt;div&gt;thisXdocument.View.ExecuteAction(&amp;quot;xCollection::Insert&amp;quot;, xmlToEdit);&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;To determine&amp;nbsp;xmlToEdit look at the advanced tab of the properties of the repeating group. This only works for a specific view.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Add records to repeatingTable</title><link>https://www.infopathdev.com:443/forums/thread/28055.aspx</link><pubDate>Fri, 18 Apr 2008 08:47:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28055</guid><dc:creator>czbjack</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28055</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve add a repeating group in the main datasouce.which I want Insert/delete rows via code only.&lt;/p&gt;
&lt;p&gt;Pleae could someone be kind enough to tell me how can I do?&lt;/p&gt;
&lt;p&gt;BTW,I use JS and IP2007.&lt;/p&gt;</description></item></channel></rss>