<?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: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/25482.aspx</link><pubDate>Tue, 08 Jan 2008 17:58:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25482</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25482</wfw:commentRss><description>&lt;p&gt;Matt,&lt;/p&gt;
&lt;p&gt;Click on my name and send me an email and we can set up a demo.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Active Directory is a database, so the web service queries it directly and loads the fields right into your form for its use.&amp;nbsp; It does not copy it to an additional SQL table.&amp;nbsp; So when the form opens it queries AD and returns the user&amp;#39;s username, which you can use to filter specific content or query for all AD information such as email address, manager, etc..&amp;nbsp; You also can check for group membership.&lt;/p&gt;
&lt;p&gt;Then you use the username to do a lookup on your other data and automatically display them.&amp;nbsp; We use it all the time for security and audit tracking.&amp;nbsp; Another great thing is that this works over VPN and RAS and gets the user&amp;#39;s network authentication not their local user account.&lt;/p&gt;</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/25481.aspx</link><pubDate>Tue, 08 Jan 2008 17:34:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25481</guid><dc:creator>mattlaw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25481</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;
&lt;p&gt;Thanks for the advice.&lt;/p&gt;
&lt;p&gt;Unfortunately I am not a developer, I am a security consultant but I would be interested in a demo.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Just to clarify...this product will pull the relevant information from AD into a SQL database then the information can be used as a data source from there? If this is the case how does it then populate the form with the currently&amp;nbsp;&amp;#39;logged in&amp;#39; user details? &lt;/p&gt;
&lt;p&gt;I do not want the user to have to use a drop down to select an &amp;#39;ID&amp;#39; which then populates the rest of the form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If it does what I am after please let me know and we can arrange a demo.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Many Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Matt&lt;/p&gt;</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/25477.aspx</link><pubDate>Tue, 08 Jan 2008 16:31:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25477</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25477</wfw:commentRss><description>&lt;p&gt;Hi Matt.&lt;/p&gt;
&lt;p&gt;I would recommend you check out both the Database Accelerator package of webservices and the AD Web Service. &lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry19957.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1 - Developer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Database Accelerator is a great platform for Enterprise InfoPath solutions, especially if you do not have SharePoint.&amp;nbsp; The ADWeb Service in particular, will get you the active directory information you need without needing any code.&lt;/p&gt;
&lt;p&gt;If you would like a demo let me know.&lt;/p&gt;</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/25474.aspx</link><pubDate>Tue, 08 Jan 2008 15:31:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25474</guid><dc:creator>mattlaw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=25474</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I wonder if anyone can help me or if I need to start a new post although it is to do with Auto Fill.&lt;/p&gt;
&lt;p&gt;Basically I have a Form creted that requires a level of user information and then digitally signing.&lt;/p&gt;
&lt;p&gt;I would like the form to auto-fill from the information stored in AD or using information within the certificate stored on a smartcard.&amp;nbsp; This will need to correspond with the user that is logged into windows when the form is loaded from the web page. Then when the form is saved it automatically signs it with the key pair on the smartcard.&lt;/p&gt;
&lt;p&gt;We do not have sharepoint in place so I need the info to come direct from AD using the windows authentication etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Matt&lt;/p&gt;</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17013.aspx</link><pubDate>Fri, 30 Sep 2005 06:14:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17013</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17013</wfw:commentRss><description>Hi Dave,&lt;br /&gt;What trouble are you having? Please do explain.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17012.aspx</link><pubDate>Sun, 25 Sep 2005 11:33:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17012</guid><dc:creator>davehook</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17012.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17012</wfw:commentRss><description>Does anyone have a sample form to show this as I am having trouble following the instructions (I am new to this and the answer suggests some kind of previous understanding)&lt;br /&gt;&lt;br /&gt;Many Thanks</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17011.aspx</link><pubDate>Thu, 15 Sep 2005 10:03:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17011</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17011</wfw:commentRss><description>Hi,&lt;br /&gt;Ok Let me tell you from the beginning&lt;br /&gt;&lt;br /&gt;1. Take a database connection&lt;br /&gt;2. Map the dropdown to show Location values from DB dataconnection.&lt;br /&gt;There are two approaches from here &lt;br /&gt;a. With Rules.&lt;br /&gt;b. With Code &lt;br /&gt;&lt;br /&gt;a. With Rules&lt;br /&gt;   1. Double click on the dropdown&lt;br /&gt;   2. Click on the Rules button.&lt;br /&gt;   3. Click on add Action button.&lt;br /&gt;   4. Select the field to which you want to set value&lt;br /&gt;   5. Click on "fx" Button to set value.&lt;br /&gt;   6. Click on "Inser Field or Group"&lt;br /&gt;   7. Select the DBConnection.&lt;br /&gt;   8. Select field value that you want to set&lt;br /&gt;   9. Click on filter button&lt;br /&gt;   10. In the first dropdown select the "Location"(ID)&lt;br /&gt;   11. In the second dropdown select "is equal to"&lt;br /&gt;   12. In the third dropdown select "Select a field or group"&lt;br /&gt;   13. Here select the value from main Dom to which Dropdown is&lt;br /&gt;       mapped to.&lt;br /&gt;   14. Click ok 8 times.&lt;br /&gt;&lt;br /&gt;   Similarly you can add any number of actions for one rule.&lt;br /&gt;&lt;br /&gt;b. With Code&lt;br /&gt;   Add an onAfterChange Event to the dropdown and wite the following in the dropdown.&lt;br /&gt;   1. //These are the Namespaces used by the secondary db connection&lt;br /&gt;string sNameSpaceForSecondaryDoms = "xmlns:d='http://schemas.microsoft.com/office/infopath/2003/ado/dataFields' xmlns:ns1='http://autonomysystems.com/webservices/' xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution'";&lt;br /&gt;   2. //Get the secondary dom to which the dropdown is mapped.&lt;br /&gt;IXMLDOMDocument2 dbDom = (IXMLDOMDocument2)thisXDocument.GetDOM("DBConnection");&lt;br /&gt;dbDom.setProperty("SelectionNamespaces", sNameSpaceForSecondaryDoms);&lt;br /&gt;&lt;br /&gt;   3. //Get the dropdown value&lt;br /&gt;string dropDownValue = thisXDocument.DOM.selectSingleNode("/my:myFields/my:field1").text;&lt;br /&gt;&lt;br /&gt;   4. //Get the Node that is selected in the dropdown, Here i have selected the node by filtering with the selected value in the first dropdown&lt;br /&gt;IXMLDOMNode parentNode = dbDom.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Data[@location = '" + dropDownValue + "']");&lt;br /&gt;&lt;br /&gt;   5. //Set the Values for which you want to set values.&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:address").text = parentNode.selectSingleNode("@address").text;&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:city").text = parentNode.selectSingleNode("@city").text;&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:state").text = parentNode.selectSingleNode("@state").text;&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17010.aspx</link><pubDate>Tue, 13 Sep 2005 08:33:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17010</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17010</wfw:commentRss><description>Hi Cajun and MJ Wireless and welcome to our forum,&lt;br /&gt;I think you will have to write code to do this. I will ask one of our engineers to show an example of this.&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17009.aspx</link><pubDate>Mon, 12 Sep 2005 21:00:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17009</guid><dc:creator>mjwireless</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17009</wfw:commentRss><description>I am needing the same solution and I still don't quite understand how you show the other fields on the form that are in the same access recordset as the field selected for the drop-down.</description></item><item><title>Re: Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/17008.aspx</link><pubDate>Thu, 08 Sep 2005 17:07:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17008</guid><dc:creator>markperry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17008.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17008</wfw:commentRss><description>OK, let's see how well I can explain an answer to what (I think) you're trying to do.&lt;br /&gt;&lt;br /&gt;1) Set up your Access DB as a secondary data connection. Do Tools --&amp;gt; Data Connections --&amp;gt; Add and choose to receive data. Pick a SQL / Access DB and then select the relevant database. It will ask you to pick tables / columns etc. Make sure you're happy and finish the wizard.&lt;br /&gt;&lt;br /&gt;2) You will have dropped your data / query fields from the Data Source onto your form. Pick the field you want to become your Drop Down List (DDL) and right click it. Select Change To --&amp;gt; Drop-Down List Box&lt;br /&gt;&lt;br /&gt;3) Right click the DDL and select Properties. At the bottom, set List Box Entries to look up database. Change your data connection to the one you set up in step 1) and use the Select XPath icon to choose which field in the table you want to use as a look up. The value and display name fields should be set to "."&lt;br /&gt;&lt;br /&gt;4) Preview your form and the DDL should populate from the database. I think this is OK for submission - the form should submit the data in the DDL to your submission database (if that's where you're sending it to) OK.&lt;br /&gt;&lt;br /&gt;Let me know if this works.</description></item><item><title>Auto Fill</title><link>https://www.infopathdev.com:443/forums/thread/16733.aspx</link><pubDate>Wed, 31 Aug 2005 18:35:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16733</guid><dc:creator>Cajun</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16733.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16733</wfw:commentRss><description>Situation:&lt;br /&gt;1 MS Access Database w/ 1 Table&lt;br /&gt;1 Infopath form&lt;br /&gt;--&lt;br /&gt;I need to use a Drop Down Menu to select an item,&lt;br /&gt;then auto fill in 5 different lines on the form from feilds&lt;br /&gt;in the DB. (IE I need to select the location, then auto fill the address, city, state, zip, contact info for that record onto the form)&lt;br /&gt;The DDM will be using info from the DB.&lt;br /&gt;&lt;br /&gt;Any help would be great.</description></item></channel></rss>