<?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: Removing Section form repeating Section with XCollection:Remove</title><link>https://www.infopathdev.com:443/forums/thread/47187.aspx</link><pubDate>Sun, 20 Sep 2009 16:56:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47187</guid><dc:creator>xfields</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47187</wfw:commentRss><description>&lt;p&gt;Of course.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Both ways work - i can´t see one iss more easy than the other.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And ... U got the point - the problem when the button is outside is the way to select the row :-)&lt;/p&gt;</description></item><item><title>Re: Removing Section form repeating Section with XCollection:Remove</title><link>https://www.infopathdev.com:443/forums/thread/47163.aspx</link><pubDate>Sat, 19 Sep 2009 03:22:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47163</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47163</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can use ordinary DOM manipulation to do this easily enough.&amp;nbsp; If you&amp;#39;re using a button inside th repeating section to do this, you should be able to just use this code in the button&amp;#39;s event handler:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;e.Source.parentNode.removeChild(e.Source);&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;If you want to have a single button somewhere outside the repeating section, you&amp;#39;ll need some way of selecting the row you want to delete, and then use that instead of &lt;b&gt;e.Source&lt;/b&gt;. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Removing Section form repeating Section with XCollection:Remove</title><link>https://www.infopathdev.com:443/forums/thread/47126.aspx</link><pubDate>Fri, 18 Sep 2009 14:08:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47126</guid><dc:creator>xfields</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47126</wfw:commentRss><description>&lt;p&gt;For all have the same prob.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The remove works when the button is directly in the section u want to remove&lt;/p&gt;</description></item><item><title>Removing Section form repeating Section with XCollection:Remove</title><link>https://www.infopathdev.com:443/forums/thread/47099.aspx</link><pubDate>Thu, 17 Sep 2009 14:17:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47099</guid><dc:creator>xfields</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47099</wfw:commentRss><description>&lt;p&gt;I have a repeating Section wich I control with a button with custom code in c#.&lt;/p&gt;
&lt;p&gt;Works fine so far. I can add sections and removeAll with the xCollection but a remove of a single section dont work.&lt;/p&gt;
&lt;p&gt;I bet cause Infopath dont know which but i cant figure it out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Code that works:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To ADD:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL624_5_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;thisXDocument.View.ExecuteAction(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;xCollection::insert&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;gruppe88_2112&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;To RemoveAll&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL625_5_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;thisXDocument.View.ExecuteAction(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;xCollection::removeAll&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;gruppe88_2112&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But a thisXDocument.View.ExecuteAction(&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;xCollection::remove&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;gruppe88_2112&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;); for removing just one gives me an error&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>