<?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: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/83143.aspx</link><pubDate>Mon, 01 Oct 2012 21:11:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83143</guid><dc:creator>mikeng</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=83143</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This was helpful.&amp;nbsp; thanks&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61437.aspx</link><pubDate>Tue, 16 Nov 2010 04:37:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61437</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61437</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;My two multi selection list boxes are populated by a secondary data source to my database and thus shows current table data. My button swaps selections from both boxes and re-receives data from their respective tables to show the updated selections. &lt;/p&gt;
&lt;p&gt;Is this swapping possible without a database commit? ie, I only want to see my selections swap between the 2 MSLB but my database tables are not updated yet. Only on clicking of my form submit button, will the updates be performed via DBXL. Must I copy my table values onto my form datasource?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61293.aspx</link><pubDate>Thu, 11 Nov 2010 01:11:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61293</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61293</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;As I replied to Hilary, &lt;/p&gt;
&lt;p&gt;&amp;quot;I guess I&amp;#39;ll use a table trigger to do my updates, but nonetheless, I&amp;#39;m keen to find out what statements can I replace my command with? Insert statements? If I didn&amp;#39;t remember wrongly, I did try to run a stored proc before but similarly, it did not execute. Could it be because my SP has an update statement? &amp;quot;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already started work with a trigger solution but is just looking forward to understand InfoPath capabilities more. Just like the MSLB, I found a workaround, ugly method... But will now revert back to using the database mapping you taught.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61246.aspx</link><pubDate>Wed, 10 Nov 2010 07:14:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61246</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61246</wfw:commentRss><description>&lt;p&gt;I have a feeling the UPDATE is not working because of this InfoPath quirk:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/12799/45297.aspx#45297"&gt;http://www.infopathdev.com/forums/p/12799/45297.aspx#45297&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The workaround given in that post will probably do the trick, but why not have the trigger do this update instead of running the SQL from InfoPath?&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61244.aspx</link><pubDate>Wed, 10 Nov 2010 06:10:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61244</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61244.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61244</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;It worked now. I believe its due to a repeated mapping as seen in attached screenshot. I have another MSLB where instead of removing the selections, I add them to another table. It seems that was causing some confusion for the mapping. I&amp;#39;ve removed the maps and will map to a new table now. &lt;/p&gt;
&lt;p&gt;Now all I need is hopefully run a stored procedure on the mapped table. This will do the updates on the master table based on the engagements in my mapped table. I&amp;#39;m having trouble with the ADOQueryconnections. Meanwhile, I&amp;#39;m using DB triggers to do the updates. Not the most beautiful way but gets the job done :)&lt;/p&gt;
&lt;p&gt;Do you happen to know why my sql statement below is not executing? I&amp;#39;ve put the code below as my button code.&lt;/p&gt;
&lt;p&gt;Dim&lt;font size="2"&gt; myAdoQueryConnection &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; AdoQueryConnection = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;ETS_Group_Engagement&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font size="3"&gt; &lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font color="#008000"&gt;&lt;font color="#008000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font color="#008000"&gt;&lt;font color="#008000"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;myAdoQueryConnection.Command = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;update formdb..ETS_Group_Engagement set EngagementCode = &amp;#39;1111&amp;#39; where EngagementCode = &amp;#39;0612&amp;#39; &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;myAdoQueryConnection.Execute()&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;*************************&lt;/p&gt;
&lt;p&gt;ETS_Group_Engagement&amp;nbsp;is my SDC which uses a database connection instead of a webservice call. Connection to the database table&amp;nbsp;is valid because I have a dummy field pulling data from the table. However, the execute statement does not update my table. No error during debug&amp;nbsp;mode&amp;nbsp;also. &lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&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;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;myAdoQueryConnection.Execute()&lt;/font&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61240.aspx</link><pubDate>Wed, 10 Nov 2010 04:22:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61240</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61240</wfw:commentRss><description>&lt;p&gt;Did you add the [. != &amp;#39;&amp;#39;] filtering like I suggested?&amp;nbsp; If EngagementCode is the primary key and there are EngagementCode nodes with blank values (as MSLBs tend to have), that will cause the mapping to fail.&lt;/p&gt;
&lt;p&gt;If you try that and it still doesn&amp;#39;t work, please attach an updated screenshot, and this time could you make it so the left and right sides aren&amp;#39;t cut off?&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61237.aspx</link><pubDate>Wed, 10 Nov 2010 03:13:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61237</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61237</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;I tried adding the dot (.) and the xpath directly, both methods did not work. When I reshred, I get an error, &amp;quot;The value for key value &amp;quot;EngagementCode&amp;quot; is unspecified. All key values must be specified.&amp;quot;&lt;/p&gt;
&lt;p&gt;It seems my selections in the MSLB&amp;nbsp;are not detected. How did you get your selections to be detected?&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61200.aspx</link><pubDate>Tue, 09 Nov 2010 13:58:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61200</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61200</wfw:commentRss><description>&lt;p&gt;Have the table node path go all the way to my:Engagements_in_Group instead of stopping at my:Group_Engagements_in_Group, and use just a dot as the node path for the EngagementCode column.&amp;nbsp; If DAT won&amp;#39;t let you select these from the taskpane, you can enter them manually.&lt;/p&gt;
&lt;p&gt;You should probably also append &lt;strong&gt;[. != &amp;#39;&amp;#39;]&lt;/strong&gt; at the end of the table node path to filter out any blank nodes that the listbox is concealing.&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61188.aspx</link><pubDate>Tue, 09 Nov 2010 10:08:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61188</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61188</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Unfortunately, did not work for me. Attached are some screenshots of my data source and DB mapping. For the mapping I have the MSLB&amp;#39;s group holder &amp;quot;Group_Engagement...&amp;quot; and for the EngagementCode which I am trying to store as separate DB rows, I have mapped &amp;quot;Group_Engagement..&amp;quot;&amp;#39;s child node. This worked for a repeating table but when it came to MSLB, I am having NULL inserted for EngagementCode despite checking a few selections in the MSLB.&lt;/p&gt;
&lt;p&gt;Did I do my mapping wrongly?&lt;/p&gt;</description></item><item><title>Re: Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61187.aspx</link><pubDate>Tue, 09 Nov 2010 09:38:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61187</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61187</wfw:commentRss><description>&lt;p&gt;Yes this should definitely work.&amp;nbsp; Have you tried it yet?&lt;/p&gt;</description></item><item><title>Inserting multi selection to database via DBXL</title><link>https://www.infopathdev.com:443/forums/thread/61184.aspx</link><pubDate>Tue, 09 Nov 2010 08:43:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61184</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=61184</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;Has anyone tried having a multi selection listbox (populated with secondary data source) in their form and pushing the user selected values into a SQL database via DBXL database mapping? Can this work?&lt;/p&gt;
&lt;p&gt;So far, I am only able to insert multiple rows into my database table&amp;nbsp;when my multiple fields come from a repeating table. ie, I insert 10 rows into my repeated table and this 10 rows are mapped to my database table via DBXL&amp;#39;s database mapping. Now I am trying to achieve the same with my multi selection list box. If I check 5 options in my MSLB, can I map them to my database table as 5 rows?&lt;/p&gt;
&lt;p&gt;Thanks for any help!&lt;/p&gt;</description></item></channel></rss>