<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Retrieving the Logged On UserName in a Form</title><link>https://www.infopathdev.com:443/forums/thread/9300.aspx</link><pubDate>Sat, 11 Mar 2006 12:56:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9300</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9300.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9300</wfw:commentRss><description>Thanks for replying Agni.&lt;br /&gt;&lt;br /&gt;I don't know how to use .Net instead of using the Java script code, but I should probably look into that.&lt;br /&gt;&lt;br /&gt;However, yesterday, we tried the ADService Webservice and it worked beautifully.  We should have done that 3 days ago in stead of spending all the time trying to figure it out ourselves.&lt;br /&gt;&lt;br /&gt;I still think future releases of Infopath, should have the logged on username as a function, similar to how the "Now()" function can be used.</description></item><item><title>Re: Retrieving the Logged On UserName in a Form</title><link>https://www.infopathdev.com:443/forums/thread/9299.aspx</link><pubDate>Sat, 11 Mar 2006 07:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9299</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9299</wfw:commentRss><description>Hi,&lt;br /&gt;If it is the script then using ActiveX control needs full trust to your form. There are two ways to continue here, &lt;br /&gt;1. Use .net as your code behind and there you don't need full trust to get logged in username.&lt;br /&gt;2. Use AD service webservice to get the loggedIn user details.&lt;br /&gt;</description></item><item><title>Retrieving the Logged On UserName in a Form</title><link>https://www.infopathdev.com:443/forums/thread/5437.aspx</link><pubDate>Fri, 10 Mar 2006 16:10:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5437</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5437</wfw:commentRss><description>We have been trying to figure this out for a couple of days and don't have the best solution yet.  There HAS to be an easy way to do this.  It is such a basic concept.&lt;br /&gt;&lt;br /&gt;We want to capture the Logged On Username (Active Directory) automatically and place it on the form.  We have successfully done this on the Form Open using the following code in JavaScript.&lt;br /&gt;&lt;br /&gt;var wshShell = new ActiveXObject("Wscript.Shell");&lt;br /&gt;var wshEnv = wshShell.Environment("Process");&lt;br /&gt;var username = wshEnv.Item("UserName");		&lt;br /&gt;&lt;br /&gt;The problem is that we get a warning "An ActiveX control on this page might be unsafe to interact.." EVERYTIME someone opens a form.  We have not found out how to eliniate the warning message.&lt;br /&gt;&lt;br /&gt;We don't want to do a controlled form.&lt;br /&gt;We don't want to have to write 50 lines of code&lt;br /&gt;&lt;br /&gt;Is there an easier way to get the Username?  This should be a built in function of Infopath.&lt;br /&gt;&lt;br /&gt;Can someone tell us how to get rid of the "ActiveX Message"?</description></item></channel></rss>