<?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>Populating fields depending on drop down list Infopath 2007 and Sql Server 2008</title><link>https://www.infopathdev.com:443/forums/thread/78475.aspx</link><pubDate>Thu, 10 May 2012 17:47:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78475</guid><dc:creator>dorindam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78475.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=78475</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I am creating an Inforpath 2007 form that will be accessed from a document library in Sharepoint 2007.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The data source is a SQL Server 2008 database.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I have a repeating table in which the first column, Device Name has a drop down list containing the names of the devices from the specified table.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;What I need to do now is have the next 5 columns automatically fill with data from the same table depending on the device name.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For instance, Device Name /Able will fill in Application/ JDEdwards, Environment /Production, Device Action/ Add Virtual Wintel, ArcRcc Name /Virtual Wintel, Current Status/ Billable.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The rate I would then like to populate from another table which joins on the Device Action field of the first table.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I would rather not do this programmatically if there is a way to do it through the infopath 2007 designer.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp; 
&lt;table style="BORDER-BOTTOM-STYLE:none;BORDER-RIGHT-STYLE:none;WIDTH:834px;BORDER-COLLAPSE:collapse;WORD-WRAP:break-word;BORDER-TOP-STYLE:none;TABLE-LAYOUT:fixed;BORDER-LEFT-STYLE:none;" class="xdFormLayout xdLayout"&gt;



&lt;tr style="MIN-HEIGHT:0.31in;" class="primarylight"&gt;
&lt;td style="BORDER-BOTTOM-STYLE:none;TEXT-ALIGN:left;BORDER-RIGHT-STYLE:none;BACKGROUND-COLOR:#517dbf;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;"&gt;
&lt;div&gt;&lt;font color="#ffffff" size="3"&gt;&lt;strong&gt;Current State Servers&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="MIN-HEIGHT:0.313in;" class="primarylight"&gt;
&lt;td style="BORDER-BOTTOM-STYLE:none;TEXT-ALIGN:left;BORDER-RIGHT-STYLE:none;BACKGROUND-COLOR:#cbd8eb;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;"&gt;
&lt;div align="center"&gt;&lt;strong&gt;Current Devices&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="MIN-HEIGHT:0.313in;" class="primarylight"&gt;
&lt;td style="BORDER-BOTTOM-STYLE:none;TEXT-ALIGN:left;BORDER-RIGHT-STYLE:none;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;"&gt;
&lt;div&gt;
&lt;table style="BORDER-BOTTOM-STYLE:none;BORDER-RIGHT-STYLE:none;WIDTH:814px;BORDER-COLLAPSE:collapse;WORD-WRAP:break-word;BORDER-TOP-STYLE:none;TABLE-LAYOUT:fixed;BORDER-LEFT-STYLE:none;" class="xdRepeatingTable msoUcTable"&gt;









&lt;tr&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Device Name&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Application&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Environment&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Device Action&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Complexity/ARC RRC Name&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Current Status&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Monthly Rate&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox xdBehavior_Formatting"&gt;$0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr style="MIN-HEIGHT:26px;"&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Monthly&amp;nbsp; Total Cost:&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;span class="xdTextBox xdBehavior_Formatting"&gt;$0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="MIN-HEIGHT:26px;"&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;strong&gt;Annual Total Cost:&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;&lt;span class="xdTextBox xdBehavior_Formatting"&gt;$0&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I am new to Infopath and rusty on programming.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>