<?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: Retrieve username, firstname and lastname</title><link>https://www.infopathdev.com:443/forums/thread/53321.aspx</link><pubDate>Thu, 01 Apr 2010 20:01:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53321</guid><dc:creator>cguruc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53321</wfw:commentRss><description>&lt;p&gt;Where are you getting the identity information? - based on location machine/username&lt;/p&gt;</description></item><item><title>Re: Retrieve username, firstname and lastname</title><link>https://www.infopathdev.com:443/forums/thread/53320.aspx</link><pubDate>Thu, 01 Apr 2010 19:56:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53320</guid><dc:creator>cguruc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53320</wfw:commentRss><description>&lt;p&gt;Thanks for your reply. i will take a look at Qdabra.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieve username, firstname and lastname</title><link>https://www.infopathdev.com:443/forums/thread/52876.aspx</link><pubDate>Thu, 18 Mar 2010 04:34:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52876</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52876</wfw:commentRss><description>&lt;p&gt;Where are you getting the identity information?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t help with the code, but I can tell you that Qdabra has an Active Directory Web Service tool that will retrieve all that info for you and do so very easily.&lt;/p&gt;</description></item><item><title>Retrieve username, firstname and lastname</title><link>https://www.infopathdev.com:443/forums/thread/52844.aspx</link><pubDate>Wed, 17 Mar 2010 16:25:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52844</guid><dc:creator>cguruc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52844</wfw:commentRss><description>&lt;p&gt;Hello everyone, &lt;/p&gt;
&lt;p&gt;I have been trying to populate the username, firstname and lastname using jscript. &lt;/p&gt;
&lt;p&gt;After numerous tries, i was able to get the username populated in a form field. However, I have 2 issues now that I need help with. &lt;/p&gt;
&lt;p&gt;Issue 1: When the form is previwed from a design mode, the username populated with no issue. However, after publishing the form and opening it from a shared location, the username stays blank. (please look at the code below).&lt;/p&gt;
&lt;p&gt;Issue 2: Can anyone help me with populating&amp;nbsp;firstname&amp;nbsp;and lastname?&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;"&gt;&lt;font face="Calibri" size="3"&gt;function XDocument::OnLoad(eventObj) &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;"&gt;&lt;font face="Calibri" size="3"&gt;{ var wshShell = new ActiveXObject(&amp;quot;WScript.Shell&amp;quot;); &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;"&gt;&lt;font face="Calibri" size="3"&gt;var username = wshShell.ExpandEnvironmentStrings(&amp;quot;%username%&amp;quot;); &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;"&gt;&lt;font face="Calibri" size="3"&gt;XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/my:employee&amp;quot;).text=wshEnv(&amp;quot;UserName&amp;quot;)=username&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;LINE-HEIGHT:normal;"&gt;&lt;font face="Calibri" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>