<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can you remove repeating sections using code</title><link>https://www.infopathdev.com:443/forums/thread/47923.aspx</link><pubDate>Wed, 14 Oct 2009 20:10:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47923</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47923</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb266409.aspx"&gt;This MSDN link&lt;/a&gt; is my best friend. Which is sort of sad.&lt;/p&gt;</description></item><item><title>Re: Can you remove repeating sections using code</title><link>https://www.infopathdev.com:443/forums/thread/47918.aspx</link><pubDate>Wed, 14 Oct 2009 19:39:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47918</guid><dc:creator>moggy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47918</wfw:commentRss><description>&lt;p&gt;Great thanks quys. Will try the last one first.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding editing the manifest file. Is there some comprehensive documentation out there on this. The books I have mention it is there and how to access it, but that is about it. Some stuff in it is obvious, but not everything.&lt;/p&gt;</description></item><item><title>Re: Can you remove repeating sections using code</title><link>https://www.infopathdev.com:443/forums/thread/47916.aspx</link><pubDate>Wed, 14 Oct 2009 18:46:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47916</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47916.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47916</wfw:commentRss><description>&lt;p&gt;Rules only solution:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://alecpojidaev.wordpress.com/2009/09/10/how-to-remove-initial-row-in-repeating-tables/"&gt;http://alecpojidaev.wordpress.com/2009/09/10/how-to-remove-initial-row-in-repeating-tables/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Can you remove repeating sections using code</title><link>https://www.infopathdev.com:443/forums/thread/47870.aspx</link><pubDate>Wed, 14 Oct 2009 03:03:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47870</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47870</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;How to clear a repeating section using rules:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create a new rule wherever it needs to be when you want to clear the repeating section, and add any conditions that you want.&lt;/li&gt;&lt;li&gt;Set the rule to set the field value of one of the &lt;i&gt;child fields&lt;/i&gt; (any one of them) of the repeating group to a blank value.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Save your form as its source files and close InfoPath.&lt;/li&gt;&lt;li&gt;Open the manifest.xsf file in a text editor and locate the &amp;lt;xsf:rule&amp;gt; node that corresponds to your new rule.&amp;nbsp; It&amp;#39;ll look something like this:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;xsf:rule caption=&amp;quot;Rule 1&amp;quot; isEnabled=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsf:assignmentAction targetField=&amp;quot;my:group1/my:group2/my:field1&amp;quot; expression=&amp;quot;&amp;amp;quot;&amp;amp;quot;&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;br /&gt;&amp;lt;/xsf:rule&amp;gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Modify the targetField value so that it references the &lt;i&gt;parent&lt;/i&gt; of your repeating group:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;xsf:rule caption=&amp;quot;Rule 1&amp;quot; isEnabled=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsf:assignmentAction targetField=&amp;quot;&lt;u&gt;&lt;b&gt;my:group1&lt;/b&gt;&lt;/u&gt;&amp;quot; expression=&amp;quot;&amp;amp;quot;&amp;amp;quot;&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;br /&gt; &amp;lt;/xsf:rule&amp;gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Re-save the manifest.xsf and re-open it in design mode.&lt;/li&gt;&lt;/ol&gt;Note that this will remove &lt;i&gt;everything &lt;/i&gt;below the parent of the repeating group, so you should design your data source so that that node doesn&amp;#39;t have any other children.&lt;br /&gt;</description></item><item><title>Can you remove repeating sections using code</title><link>https://www.infopathdev.com:443/forums/thread/47869.aspx</link><pubDate>Wed, 14 Oct 2009 02:43:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47869</guid><dc:creator>moggy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47869.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47869</wfw:commentRss><description>&lt;p&gt;I have a form with a drop down box which hides/shows a repeating section.&lt;/p&gt;
&lt;p&gt;When it shows, the user can add new sections to it in the normal manner. &lt;/p&gt;
&lt;p&gt;If the user changes their minds and changes the value in the drop down to something else. The section gets hidden, however the data would still persist in the form if not viewable in this current view.&lt;/p&gt;
&lt;p&gt;I would like to removed the sections that the user added before changing their minds. Can this be done with rules, or would it have to be with code?&lt;/p&gt;</description></item></channel></rss>