<?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: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106141.aspx</link><pubDate>Tue, 12 Apr 2016 20:48:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106141</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106141</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m very close to incorporating your solution into my IP form.&amp;nbsp; What I&amp;#39;m seeing is that only the first row from the secondary xml data source is being used to populate the repeating nodes.&amp;nbsp;What I&amp;#39;ve noticed is that InfoPath has inserted &amp;quot;descendant-or-self::node()/&amp;quot; into my formula.&amp;nbsp; Yet, when I try to remove that text, the formula raises an error, indicating that the path doesn&amp;#39;t point to a valid location of a field or group.&amp;nbsp; Have you ever seen this before, and could this be the reason that only the first row of the secondary data source is populating all of the repeating nodes?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Data&amp;quot;)/Data/Row[count(current()/../../../../../../descendant-or-self::node()/preceding-sibling::my:REPEATING_TABLE) + 1]/Format&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106116.aspx</link><pubDate>Mon, 11 Apr 2016 21:33:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106116</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106116</wfw:commentRss><description>Preceding-sibling can be tricky to get the hang of. What I did was select the field in the secondary data source. Then I clicked Edit XPath, and manually added the filter with the square brackets. The filter returns a number - a count of the preceding siblings in the main data source, adding one, since we want to get the same index as our current row (i.e., row 1 will have a preceding-sibling count of 0). Your formula will likely look similar, but the XPath will change because the name of your repeating group will be different than mine.</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106115.aspx</link><pubDate>Mon, 11 Apr 2016 21:31:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106115</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106115</wfw:commentRss><description>&lt;p&gt;I meant to include the formula in my last post --&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Row[count(current()/../preceding-sibling::group2) + 1]/Field1&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106114.aspx</link><pubDate>Mon, 11 Apr 2016 21:28:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106114</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106114</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hilary this looks fantastic and I&amp;#39;m pretty sure that it will work for me.&amp;nbsp; I can&amp;#39;t thank you enough for your time.&lt;/p&gt;&lt;p&gt;I&amp;#39;m embarrassed to ask this, but .. how did you enter this&amp;nbsp;formula?&amp;nbsp; I&amp;#39;m trying to enter the formula and even when keyed exactly as in&amp;nbsp;the&amp;nbsp;template it won&amp;#39;t work for me.&amp;nbsp; Are you inserting&amp;nbsp;functions and fields into the formula, or did you just key it directly as is into the formula window?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106112.aspx</link><pubDate>Mon, 11 Apr 2016 19:37:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106112</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106112</wfw:commentRss><description>Attached as 2010 here - I think this approach is going to do what you need - note the update field with rules on it that is set in a form load rule. :)</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106111.aspx</link><pubDate>Mon, 11 Apr 2016 19:12:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106111</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106111</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;As if I&amp;#39;m not difficult enough, I&amp;#39;m using IP 2010 and can&amp;#39;t open your attached template.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106110.aspx</link><pubDate>Mon, 11 Apr 2016 19:09:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106110</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106110</wfw:commentRss><description>With my test form that I attached, I combined default data to add the rows, then formulas as default values. When I removed all instances of group2 from a sample XML file and re-opened it, the second row displayed data correctly but not the first - so this approach may still not work. Again, if you are going to copy data from a secondary data source into the main data source, you&amp;#39;ll need code for adding repeating rows, unless you use default data.... you could also use rules &amp;amp; a helper field for this - see attached.</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106109.aspx</link><pubDate>Mon, 11 Apr 2016 18:59:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106109</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106109</wfw:commentRss><description>I think it will. My concern was with the columns the user would be entering data in. I&amp;#39;m guessing those don&amp;#39;t already exist in your existing XML files? I&amp;#39;ve attached a sample form that uses this approach.</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106108.aspx</link><pubDate>Mon, 11 Apr 2016 18:49:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106108</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106108</wfw:commentRss><description>&lt;p&gt;Maybe there is a better way to do what I&amp;#39;m doing.&amp;nbsp; Basically what I&amp;#39;m trying to do is create a table that has 7 columns,&amp;nbsp;5 of which contain static data, but the static data differs for each row in the table.&amp;nbsp; The user can update two columns in each row.&amp;nbsp; There will be a total of 70+ rows in the table.&amp;nbsp; The repeating table works great for the calculations that I need to do on the two columns that the user can update.&amp;nbsp; I need a way to pre-fill the repeating table with the static data for both new forms, and existing forms.&amp;nbsp; I thought that if it was the default data that was causing my issue, then perhaps pre-filling from a secondary data source would work.&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106107.aspx</link><pubDate>Mon, 11 Apr 2016 18:24:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106107</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106107</wfw:commentRss><description>You might be able to do something with a separate XML file - can the user change the values in the fields where you are setting a default? InfoPath is going to control the contents of upgrade.xsl - that&amp;#39;s why you&amp;#39;d use a custom event for upgrade &amp;amp; write code to handle for this.</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106105.aspx</link><pubDate>Mon, 11 Apr 2016 17:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106105</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106105</wfw:commentRss><description>&lt;p&gt;I have 5000+ existing forms in a SharePoint form library and I think writing a PowerShell script or using QRules would be a last resort, although I&amp;#39;m up against a deadline and may need to consider those options.&lt;/p&gt;&lt;p&gt;Final questions before I completely reverse course and (possibly) re-design my form -- &lt;/p&gt;&lt;p&gt;Is there a way to use a secondary data source to populate the repeating table using rules?&amp;nbsp; I was hoping that using a separate xml file would work in this case.&lt;/p&gt;&lt;p&gt;Can&amp;nbsp;upgrade.xsl be modified to copy all&amp;nbsp;of the default rows, instead of only the first row?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106102.aspx</link><pubDate>Mon, 11 Apr 2016 15:50:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106102</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106102</wfw:commentRss><description>Not without code (or qRules, if you use that?)</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106101.aspx</link><pubDate>Mon, 11 Apr 2016 15:38:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106101</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106101</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you again, Hilary.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Aside from modifying my existing forms to include the default repeating nodes, is there a way to populate default rows in the table without using the Data --&amp;gt; Default Values method?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106096.aspx</link><pubDate>Mon, 11 Apr 2016 14:49:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106096</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106096</wfw:commentRss><description>I must not have been clear in my post above. I think if you are going to make this kind of a change the existing XML are NOT going to update with the added defaults. InfoPath uses template.xml for a new form, then applies the upgrade.xsl for existing.... so I think you&amp;#39;ll have to either write custom code to upgrade your existing XML on open, or do something to manually add this new data to the existing files (I like PowerShell for this).</description></item><item><title>Re: Repeating Table Shows Duplicate Default Values</title><link>https://www.infopathdev.com:443/forums/thread/106092.aspx</link><pubDate>Sun, 10 Apr 2016 21:14:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106092</guid><dc:creator>KenNC1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106092</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Template was sent via email.&amp;nbsp; Thank you for your help.&lt;/p&gt;</description></item></channel></rss>