<?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: Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50204.aspx</link><pubDate>Tue, 29 Dec 2009 17:53:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50204</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50204</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Adding items to an array and iterating through them is a fairly elementary matter and if your coding expertise isn&amp;#39;t up to that level, I would caution against trying to use code in your form as it may become a maintenance liability later on.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here at Qdabra we try to discourage using custom code in forms (including in our own internal forms) because of the troubleshooting and maintenance requirements it brings.&amp;nbsp; That&amp;#39;s why we developed &lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;qRules&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With qRules, you can accomplish this task with a single, simple command:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;b&gt;Delete /xpath=/dfs:myFields/dfs:dataFields/d:SUBMIT_TABLE[@CHKBOX_SELECTION = 1]&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;I would suggest downloading the trial version and giving it a spin.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50202.aspx</link><pubDate>Tue, 29 Dec 2009 15:56:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50202</guid><dc:creator>dngo4579</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50202.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50202</wfw:commentRss><description>&lt;p&gt;can you show me an example?&lt;/p&gt;
&lt;p&gt;I am a little unsure on how to do that.&lt;/p&gt;</description></item><item><title>Re: Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50018.aspx</link><pubDate>Thu, 17 Dec 2009 15:48:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50018</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50018.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50018</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You need to place the rows you want to remove in an array and remove them after the loop is finished.&amp;nbsp; Otherwise, the loop will stop prematurely.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50017.aspx</link><pubDate>Thu, 17 Dec 2009 15:09:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50017</guid><dc:creator>dngo4579</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50017</wfw:commentRss><description>&lt;p&gt;I am.&amp;nbsp; This is what i have thus far. The problem is, after it deletes the current node the loop stops; it doesn&amp;#39;t continue on to the next node (probably because I deleted&amp;nbsp;a row and now it&amp;#39;s confused or something).&amp;nbsp; How do you &amp;quot;make sure that the previous node now points to the node that is after the deleted node&amp;quot;?&amp;nbsp; Here&amp;#39;s my code.... please help!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; table = MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:SUBMIT_TABLE&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;while&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (table.MoveNext())&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SubmitID = table.Current.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;@SubmitID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; chkbox = table.Current.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;@CHKBOX_SELECTION&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&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;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (chkbox == &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;1&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;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; DelRow = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:SUBMIT_TABLE[&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + SubmitID + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt; 
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;DelRow.DeleteSelf();&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;else&lt;/p&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;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/49991.aspx</link><pubDate>Thu, 17 Dec 2009 05:31:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49991</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49991</wfw:commentRss><description>&lt;p&gt;i hope you are using code for this one. &lt;/p&gt;
&lt;p&gt;through code loop through your repeating section and check for the value of checkbox, the node for which checkbox is selected delete that. you will need to make sure that the previous node now points to the node that is after the deleted node.&lt;/p&gt;</description></item><item><title>Delete a row from a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/49968.aspx</link><pubDate>Wed, 16 Dec 2009 15:45:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49968</guid><dc:creator>dngo4579</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49968</wfw:commentRss><description>&lt;p&gt;I would like to have a button that is outside a repeating table that will delete&amp;nbsp;a specific row if a checkbox is checked.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I know how to do this if the button is in the same row of the repeating table, but i want to delete it if the button is not within the repeating table.&amp;nbsp; A button outside outside the repeating table.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>