<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Displaying multiple rows in a repeating table from a SQL query</title><link>https://www.infopathdev.com:443/forums/thread/66300.aspx</link><pubDate>Thu, 05 May 2011 11:30:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66300</guid><dc:creator>Anthony Watherston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66300.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=66300</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need some help with a displaying data in a repeating table. If I can get a simple example to work I can then adapt it to an existing infopath form and make it more functional.&lt;/p&gt;&lt;p&gt;I have a simply table - (Order_Number,Item,Quantity,Price).&lt;/p&gt;&lt;p&gt;There can be multiple order numbers - each with a different item/quantity - this is meant to represent a purchase order where the order_number would be the PO number.&lt;/p&gt;&lt;p&gt;I want to have a field where the user can enter the Order Number - click a button and a repeating table is populated with the query results - 1 row returned = 1 row in the table&lt;/p&gt;&lt;p&gt;The rules associated with the button are &amp;quot;Query the database&amp;quot; (InfoPath generated query) and then the results&amp;nbsp; are filtered according to order number. &lt;/p&gt;&lt;p&gt;How do I set up the repeating table?&lt;/p&gt;&lt;p&gt;When I run the query in SQL (adding a WHERE Order_Number = &amp;quot;1&amp;quot; as a test it returns multiple rows) however I&amp;#39;m not sure how to put these results into the table.&lt;/p&gt;&lt;p&gt;If you can picture the table would have 3 fields - Item/Quantity/Price.&lt;/p&gt;&lt;p&gt;When I define a rule to set the first field and apply a filter to match the user input it only returns one row - where there are multiple rows returned by the query. And what do I put for the other fields. &lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Anthony&lt;/p&gt;</description></item></channel></rss>