<?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: Numbering / counting rows</title><link>https://www.infopathdev.com:443/forums/thread/40037.aspx</link><pubDate>Thu, 26 Mar 2009 17:45:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40037</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=40037</wfw:commentRss><description>&lt;p&gt;Worked perfectly - thanks&lt;/p&gt;</description></item><item><title>Re: Numbering / counting rows</title><link>https://www.infopathdev.com:443/forums/thread/39458.aspx</link><pubDate>Thu, 12 Mar 2009 15:17:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39458</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=39458</wfw:commentRss><description>&lt;p&gt;We&amp;#39;ve got a sample form &lt;a href="http://www.infopathdev.com/files/folders/basics/entry31166.aspx"&gt;here&lt;/a&gt; that shows how to use preceding-sibling to do this for the main data source.&amp;nbsp; The main difference in your requirements are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;You are using a secondary data source, and &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You need to add a filter to the field selection&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;So, with those items in mind, I&amp;#39;ve created another sample, located &lt;a href="http://www.infopathdev.com/files/folders/basics/entry39457.aspx"&gt;here&lt;/a&gt;. My sample is using an XML data connection, for portability, so I am using a main DOM field for filtering. You&amp;#39;ll need to modify to use the query fields from your SQL data source for the filters on the XPath....&lt;/p&gt;</description></item><item><title>Numbering / counting rows</title><link>https://www.infopathdev.com:443/forums/thread/39414.aspx</link><pubDate>Wed, 11 Mar 2009 17:22:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39414</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=39414</wfw:commentRss><description>&lt;p&gt;I have an IP 2007 Form that has a data connection to a SQL table.&lt;/p&gt;
&lt;p&gt;Based on drop down selections, the user can filter the data that is returned after hitting the Run Query Button.&amp;nbsp; As an example, return only rows with a date of yesterday.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The end user has asked for two things:&lt;/p&gt;
&lt;p&gt;1. For each filtered record set in a repeating table, they would like to have the rows numbered. The original table does not have an ID field.&lt;/p&gt;
&lt;p&gt;2. Once the filtered selection has been displayed, they would like to know the record count displayed&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any easy way to do either?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item></channel></rss>