<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Delete specific row in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/61601.aspx</link><pubDate>Mon, 22 Nov 2010 19:19:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61601</guid><dc:creator>asammyr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61601</wfw:commentRss><description>&lt;p&gt;This is how I solved that problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) First create a view called Delete Record.&lt;br /&gt;2)&amp;nbsp;In the Delete Record View&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) Place all the fields that you need to confirm that you are deleting the correct record on the form as text box that is read only.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) Place a button on the form that is set to Delete &amp;amp; Submit&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c) Place a button on the form that will switch the view back to the original view with the repeating table.&lt;br /&gt;3) In the View with the repeating table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) Create a column in the repeating table and add a botton with the following actions in a single rule.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1) Set Field&amp;nbsp;Value: [Unique ID from data] = [Unique ID from query]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Query using data connection:Main Connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3) Switch View: Delete Record&lt;/p&gt;
&lt;p&gt;This will essentially query only for that one data item and&amp;nbsp;switch you to the Delete Record view.&amp;nbsp; Then you can&amp;nbsp;delete that item.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Re: Delete specific row in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/59066.aspx</link><pubDate>Tue, 21 Sep 2010 02:36:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59066</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=59066</wfw:commentRss><description>&lt;p&gt;Hello Howard,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a title="qRules" href="http://www.qdabra.com/en/products/qRules.aspx"&gt;qRules&lt;/a&gt;&amp;#39; Delete command can be used to delete any node in your form, including specific rows of a repeating table.&amp;nbsp; I recommend using this approach rather than writing code expressly for this purpose.&lt;/p&gt;</description></item><item><title>Delete specific row in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/58920.aspx</link><pubDate>Mon, 13 Sep 2010 20:39:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58920</guid><dc:creator>Howard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=58920</wfw:commentRss><description>&lt;p&gt;Hello.&amp;nbsp; I&amp;#39;ve designed an InfoPath 2007 form that querys a SQL Server database. The form displays a list of operating systems and operating system versions. I have a table called OperatingSystem and another table called OperatingSystemVersion that are linked by key.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I search for Windows, I get several results because&amp;nbsp;of the one to many&amp;nbsp;relationship with&amp;nbsp;the versions (2000, XP, Vista, etc...)&lt;/p&gt;
&lt;p&gt;I understand that I could not delete Windows because there are several child records with keys that rely on that record, but how would I&amp;nbsp;delete the child records (version) that appear on the form? &amp;nbsp;I would like to&amp;nbsp;make a form button to delete a specific version.&amp;nbsp;Idea was to&amp;nbsp;put the delete button in the repeating section so it appears next to every record but I don&amp;#39;t know programaticly how to specify to delete the record in the row where the button is clicked.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for reading and any suggestions.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Howard&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>