<?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: Concatenate multiple row values into one string</title><link>https://www.infopathdev.com:443/forums/thread/48120.aspx</link><pubDate>Wed, 21 Oct 2009 19:55:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48120</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=48120</wfw:commentRss><description>&lt;p&gt;Hmmm. Most posts around the double eval() method are used to concatenate together things like email addresses, separating with a semicolon. That being said, I&amp;#39;d think you could use the double eval() method here, with a space for the separator, instead of a semi-colon. The InfoPath Team Blog has a good post about double eval() &lt;a href="http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx"&gt;here&lt;/a&gt;. &lt;/p&gt;Now, your scenario gets a bit trickier, because it is also conditional. There is a fantastic post about making double eval() conditional &lt;a href="http://www.infopathdev.com/forums/p/7124/30263.aspx"&gt;here&lt;/a&gt;. All that being said, however, it might be easier to be pulling your data from a view where the values had already been concatenated.Then you could use a simple rule to populate your text field when the work order has been entered into the text box on the form.</description></item><item><title>Concatenate multiple row values into one string</title><link>https://www.infopathdev.com:443/forums/thread/47955.aspx</link><pubDate>Fri, 16 Oct 2009 14:25:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47955</guid><dc:creator>bradb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=47955</wfw:commentRss><description>&lt;p&gt;I have an Infopath form for printing off a work order summary. I have a&amp;nbsp;text section that I want to auto-populate with data from the SQL database. The problem is, the software that handles our workorders stores multiple lines as multiple records with a possibility of up to 300+ lines.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;For example:&lt;/p&gt;
&lt;p&gt;SQL DB&lt;/p&gt;
&lt;p&gt;WORK_ORDER_NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINE_NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&lt;/p&gt;
&lt;p&gt;11111111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This is the&lt;/p&gt;
&lt;p&gt;11111111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value of&lt;/p&gt;
&lt;p&gt;11111111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work order number 11111111&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to be able to get the VALUE fields concatenated into one string where the WORK_ORDER_NO is equal to the work order entered in a text box in the Infopath form. (ie. &amp;quot;This is the value of work order 11111111&amp;quot;)&lt;/p&gt;
&lt;p&gt;I know how to do it IF I knew how many lines there were going to be, but there could be 3, or 300.&lt;/p&gt;
&lt;p&gt;Any suggestions would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>