<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2116.aspx</link><pubDate>Wed, 26 Apr 2006 10:22:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2116</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2116</wfw:commentRss><description>One other way to clone node is to use the Sample Data DOM instead of the main DOM. this way you can delete the rows in the Main DOM and still have no issues while cloning, because the SampleData will always have it.</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2115.aspx</link><pubDate>Tue, 25 Apr 2006 07:25:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2115</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2115</wfw:commentRss><description>Thanks for the tools default value info. I constantly find myself woking from extracted files as this makes things just a littler clearer sometimes.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Spudy</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2114.aspx</link><pubDate>Sat, 22 Apr 2006 04:59:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2114</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2114</wfw:commentRss><description>You're welcome.  :) Hmm, I'm not sure what you're trying in the above.  You should not have to manually update the template.xml by extracting the files.  There is a little known dialog under Tools::Default Values.  Here you can specify the default values for any node and if you want to have multiple default rows you can set the values for each of them.  To create the multiple default rows just select the repeating node then select the dropdown and choose the command to create another row.</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2113.aspx</link><pubDate>Mon, 10 Apr 2006 13:46:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2113</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2113.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2113</wfw:commentRss><description>Thankyou Shiraz,&lt;br /&gt;&lt;br /&gt;That works! I had to extract the files and then edit the template.xml file to enter content into each field in the repeating group. This then prevented the null error message that kept occuring whenever I tried to clonenode. With the filter hiding this first row it is a suitable workaround. &lt;br /&gt;&lt;br /&gt;I have been trying to create the first row from the schema with the following:&lt;br /&gt;row = XDocument.Solution.DOM.documentElement.selectSingleNode("//xsf:view[@name='SORDetails']//xsf:xmlToEdit[@item='/my:myFields/my:SORDetails/my:RepeatingData']//xsf:editWith[@component='xCollection']//xsf:fragmentToInsert//xsf:chooseFragment@innerFragment='my:SORDetails/my:RepeatingData']/*[RepeatingData_1]");&lt;br /&gt;&lt;br /&gt;but alas this does not work. I am checking my xpath references but was wondering if I am on the right track?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Spudy</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2112.aspx</link><pubDate>Wed, 05 Apr 2006 01:24:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2112</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2112</wfw:commentRss><description>One other option is to have a blank first row and hide it using filters.  Add a filter to the repeating table/section.  Choose "The expression" from the filter dropdown and then type in "position() &amp;gt; 1" without the qutoes.  This will display all rows except the first one.</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2111.aspx</link><pubDate>Mon, 03 Apr 2006 06:11:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2111</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2111</wfw:commentRss><description>I have also run into this problem spudy.  The problem arises in the occurence that when you programatically "add rows" and there are no rows that are actually added. Then the blank row is deleted (which is usually fine) but no rows are added back in! Next time you try to make a clone, it's not there to do it with!&lt;br /&gt;&lt;br /&gt;One way to get around this that I thought of (but have not actually used yet) is to make a global variable the sample node for cloning, instantiate this in the OnLoad function, and then delete all rows. This way you always have a node ready to be cloned!&lt;br /&gt;&lt;br /&gt;Another way to do it is to just make sure that you have some rows after you have supposedly added them back in. If there were no rows added, add the blank row.&lt;br /&gt;&lt;br /&gt;Hope this makes sense and helps!</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2110.aspx</link><pubDate>Mon, 03 Apr 2006 05:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2110</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2110</wfw:commentRss><description>Hi Spudy,&lt;br /&gt;         It works fine for me here.I can clone and append a row even after deleting that blank row.&lt;br /&gt;&lt;br /&gt;Ok,If the problem still persists,Why dont u delete the first row after u finish cloning and adding all the rows?&lt;br /&gt;:))&lt;br /&gt;If u still find it tough,I will give u the sample code as to how I did it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2109.aspx</link><pubDate>Fri, 31 Mar 2006 14:09:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2109</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2109</wfw:commentRss><description>Abhishek,&lt;br /&gt;Thanks for your response.&lt;br /&gt;&lt;br /&gt;I would rather not have a blank row. But if a row does not exist then the row.cloneNode(true) fails with the following error:&lt;br /&gt;&lt;br /&gt;'null' is null or not an object&lt;br /&gt;&lt;br /&gt;How do I create a new row if not using clone.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Spudy&lt;br /&gt;</description></item><item><title>Re: repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/2108.aspx</link><pubDate>Fri, 31 Mar 2006 13:41:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2108</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2108</wfw:commentRss><description>Hi Spudy,&lt;br /&gt;First of all why do u need to keep that one blank row?&lt;br /&gt;You say that u r populating the repeating table programatically.&lt;br /&gt;&lt;br /&gt;You dont need that one blank row to clone each new row.&lt;br /&gt;U can as well delete it and then append the new rows.&lt;br /&gt;&lt;br /&gt;If u r still gonna keep that first blank row (for reasons I may not know) and if u want to avoid having the delete option only for that first row,&lt;br /&gt;then &lt;br /&gt;1) disable the "Delete" option by clicking the "Customise Commands" button in the Repeating Table properties dialog(or uncheck the "Allow Users to Insert and Delete rows" checkbox.)&lt;br /&gt;2)Keep a Delete button in the repeating table such that if u click on it,the corressponding row gets deleted.&lt;br /&gt;3)Hide the Delete button only for that first row.&lt;br /&gt;&lt;br /&gt;Actually I have a similar situation and I have done it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>repeating table insert/delete row functions</title><link>https://www.infopathdev.com:443/forums/thread/1224.aspx</link><pubDate>Fri, 31 Mar 2006 12:04:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1224</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1224</wfw:commentRss><description>I have yet more questions.....&lt;br /&gt;&lt;br /&gt;I have a repeating table which is programatically populated from a selection of text boxes and dropdownlists. The repeating table has one blank row which is used to clone each new row that is added.&lt;br /&gt;&lt;br /&gt;I need to allow users to be able to delete rows in case they have made incorrect selections but if I allow this option in the repeating table the users are able to then delete the first row which is used to clone items. This is bad news as it can prevent adding new items.&lt;br /&gt;&lt;br /&gt;Is there away to protect the first row, or hide it?&lt;br /&gt;&lt;br /&gt;They can also see the insert row above and insert row below options which I don't want as they are done programatically.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;Spudy&lt;br /&gt;&lt;br /&gt;Is there</description></item></channel></rss>