<?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: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2687.aspx</link><pubDate>Tue, 06 Feb 2007 04:24:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2687</guid><dc:creator>dpsavy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2687</wfw:commentRss><description>Here is the method I use for querying LDAP for all sorts of useful info, such as username. Written in VBScript (sorry I'm not proficient at Javascript).&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Dim txtLogon&lt;br /&gt;&lt;br /&gt;'set the variables&lt;br /&gt;Set objRootDSE = GetObject("LDAP://rootDSE")&lt;br /&gt;Set objSysInfo = CreateObject("ADSystemInfo")&lt;br /&gt;Set objUser = GetObject("LDAP://" &amp; objSysInfo.UserName)&lt;br /&gt;&lt;br /&gt;'Use this when your users logon via a smartcard or by means&lt;br /&gt;'other than username and password.&lt;br /&gt;txtLogon = objUser.Get("sAMAccountName") 'Logon Name (pre-Windows 2000)&lt;br /&gt;&lt;br /&gt;'Use this when your users logon via username and password. (most common)&lt;br /&gt;txtLogon = objUser.Get("userPrincipalName") &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Bonus: Here is a great reference guide to Active Directory. &lt;a href='http://www.kouti.com/tables/userattributes.htm' target='_blank' title='http://www.kouti.com/tables/userattributes.htm'&lt;a target="_blank" href=http://www.kouti.com/tables/userattributes.htm&gt;http://www.kouti.com/tables/userattributes.htm&lt;/a&gt;&lt;/a&gt;</description></item><item><title>Re: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2686.aspx</link><pubDate>Tue, 06 Feb 2007 01:44:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2686</guid><dc:creator>Vassago</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2686.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2686</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by clayfox&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Another method that may be simpler, which I have used, is to leverage the form library of the form in Sharepoint.  Onload submit to a data connection that saves a blank copy of the form with a specific filename.  Then Query another data connections that returns the contents of the form library with a filter for the specific file name. I use the default modified by field to get the user's display name.  I then use it as a lookup in a database.&lt;br /&gt;You can delete the file but I don't bother since it is blank and the same form gets reused everytime the form is opened.  You can modify the view filter where as people would not see it as well.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I'm interested in how to accomplish this.  Can someone walk me through it please?</description></item><item><title>Re: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2685.aspx</link><pubDate>Fri, 07 Jul 2006 04:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2685</guid><dc:creator>Carolyn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2685</wfw:commentRss><description>I do my programming in vb.net.&lt;br /&gt;&lt;br /&gt;I use System.Environment.UserName.&lt;br /&gt;&lt;br /&gt;Dim strName as String&lt;br /&gt;strName = System.Environment.UserName&lt;br /&gt;&lt;br /&gt;That's it.</description></item><item><title>Re: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2684.aspx</link><pubDate>Thu, 06 Jul 2006 15:29:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2684</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2684.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2684</wfw:commentRss><description>Another method that may be simpler, which I have used, is to leverage the form library of the form in Sharepoint.  Onload submit to a data connection that saves a blank copy of the form with a specific filename.  Then Query another data connections that returns the contents of the form library with a filter for the specific file name. I use the default modified by field to get the user's display name.  I then use it as a lookup in a database.&lt;br /&gt;You can delete the file but I don't bother since it is blank and the same form gets reused everytime the form is opened.  You can modify the view filter where as people would not see it as well.</description></item><item><title>Re: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2683.aspx</link><pubDate>Sat, 01 Jul 2006 03:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2683</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2683</wfw:commentRss><description>Check out this links to get more information,&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2227&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2227&lt;/a&gt;&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=06d94826ac7a46a09a0f68238c2e0769&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=06d94826ac7a46a09a0f68238c2e0769&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/2682.aspx</link><pubDate>Fri, 30 Jun 2006 17:03:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2682</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2682</wfw:commentRss><description>Hello Davers &lt;br /&gt;&lt;br /&gt;Yes you can do this in Infopath&lt;br /&gt;There are lots of posts which have discussed this issue earlier &lt;br /&gt;just try searching the forums by inserting Keyword Username, Pouplateusername etc.&lt;br /&gt;you will find a lot of posts and can pick one that suits your need&lt;br /&gt;</description></item><item><title>Return their Log In ID?</title><link>https://www.infopathdev.com:443/forums/thread/1392.aspx</link><pubDate>Fri, 30 Jun 2006 13:32:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1392</guid><dc:creator>davers</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1392</wfw:commentRss><description>Hi everyone. I have a form hooked up to a Web Service which can look up employee information. The field I query on is the log Id that they log into their computers with. Is there a way to automatically fill this in? Can InfoPath get that information from the system so the user doesn't have to enter it manually? &lt;br /&gt;&lt;br /&gt;Thanks, &lt;br /&gt;&lt;br /&gt;Dave &lt;br /&gt;</description></item></channel></rss>