<?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>Re: Validating a user from Active Directory using an secondary dataconnection and userName() function</title><link>https://www.infopathdev.com:443/forums/thread/50084.aspx</link><pubDate>Mon, 21 Dec 2009 09:16:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50084</guid><dc:creator>markj8e</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50084</wfw:commentRss><description>&lt;p&gt;How can i do that then so it queries the secondary data source? I can see you can add a query but how do does it lookup the data source data?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Validating a user from Active Directory using an secondary dataconnection and userName() function</title><link>https://www.infopathdev.com:443/forums/thread/50053.aspx</link><pubDate>Fri, 18 Dec 2009 16:29:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50053</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50053</wfw:commentRss><description>&lt;p&gt;Have you tried placing a rule on your &lt;b&gt;userName &lt;/b&gt;field that queries the secondary data source and then uses the results of the query?&lt;/p&gt;&lt;p&gt;You might also want to consider using a Form Load rule instead, since the value of userName() should be available from the time the form opens.&amp;nbsp; Like Clay, I&amp;#39;m having trouble understanding how a dropdown box would help this situation at all. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Validating a user from Active Directory using an secondary dataconnection and userName() function</title><link>https://www.infopathdev.com:443/forums/thread/50041.aspx</link><pubDate>Fri, 18 Dec 2009 09:38:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50041</guid><dc:creator>markj8e</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50041</wfw:commentRss><description>&lt;p&gt;I wish it was that simple. How do i get the text box to look up the XML data connection then? I tried changing the drop down to a text box but it strips out the data connection and filtering and everything.&lt;/p&gt;
&lt;p&gt;Agreed the whole purpose of a drop down is for users to make a choice but they may get the idea&amp;#39;s of the forms wrong and choose the wrong user in the wrong place. (I don&amp;#39;t have much faith in our users)&lt;/p&gt;
&lt;p&gt;If there is another way to auto populate fields from an XML source by only using text boxes please show me how.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Validating a user from Active Directory using an secondary dataconnection and userName() function</title><link>https://www.infopathdev.com:443/forums/thread/50034.aspx</link><pubDate>Fri, 18 Dec 2009 04:02:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50034</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50034</wfw:commentRss><description>&lt;p&gt;First off, if you don&amp;#39;t want users to select anything, then don&amp;#39;t use a dropdown - the whole purpose of a dropdown box is to make a choice.&amp;nbsp; If you just want this field to be auto-set and not selected, then change it to a text box, make it read-only, and set its&amp;nbsp;default value to the value userName().&amp;nbsp; Did you try that?&amp;nbsp; If you have exact usernames in the DB, then it should match up automatically, and then your rules on that field can trigger to set the other fields automatically.&amp;nbsp; Seems simple unless I&amp;#39;m missing something.&lt;/p&gt;
&lt;p&gt;BTW, instead of your roundabout method for getting AD info, you could use the Qdabra ADWS tool to get the info directly and easily at a very low cost.&lt;/p&gt;</description></item><item><title>Validating a user from Active Directory using an secondary dataconnection and userName() function</title><link>https://www.infopathdev.com:443/forums/thread/49927.aspx</link><pubDate>Tue, 15 Dec 2009 14:11:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49927</guid><dc:creator>markj8e</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49927.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49927</wfw:commentRss><description>&lt;p&gt;Hi all&lt;br /&gt;&lt;br /&gt;I am creating a load of new forms for out IT dept. We haven&amp;#39;t got a sharepoint server but i am exporting active directory user details using a program called Hyena. &lt;/p&gt;&lt;p&gt;I am exporting the data into Access then Exporting from Access to an XML data file. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is all working great and i have also used this guide... &lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a href="http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx&lt;/a&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;...to auto populate the user details in the form using a single drop down box.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;This creates a problem though for form validation on which a user could select any name and fill out the form and submit it.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What i wanted to do is hide the drop down list box from users and using the get username function built into Infopath 2007 validate the user.&lt;br /&gt;&lt;br /&gt;So in other words how can i get the drop downlist box to automatically select the right user based on another field which is looking up the logged on user using the &lt;i&gt;userName()&lt;/i&gt; function??? This will then inturn populate all user credentials from the secondary data source at an onload event or button press.&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Mark&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>