<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx</link><description>Anyone who's tried to get the username of the person filling out their form in InfoPath 2003 knows the WhoAmI web service . That was the only way to get the username without writing Visual Basic or C# managed code and using System.Environment.UserName</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#1091669</link><pubDate>Fri, 17 Nov 2006 07:19:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1091669</guid><dc:creator>infopath</dc:creator><description>&lt;p&gt;Kudos to David Gerhardt for covering a scenario around userName in-depth in his blog article: &lt;a rel="nofollow" target="_new" href="http://blogs.3sharp.com/Blog/davidg/archive/2006/11/14/2380.aspx"&gt;http://blogs.3sharp.com/Blog/davidg/archive/2006/11/14/2380.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- Alex&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#2114043</link><pubDate>Fri, 13 Apr 2007 15:12:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2114043</guid><dc:creator>sayangh</dc:creator><description>&lt;p&gt;I have my Infopath 2007 form published to a Sharepoint server and it has been granted domain trust, but still a text-box with default value &amp;nbsp;userName() shows up blank. Am I doing anything wrong?&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#2793828</link><pubDate>Tue, 22 May 2007 17:24:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2793828</guid><dc:creator>Wosiu</dc:creator><description>&lt;p&gt;I have my InfoPath 2007 form published to a Sharepoint server with FULL TRUST and keep getting 'system' returned by userName() function. Is there any way to overcome that?&lt;/p&gt;
</description></item><item><title>Get the User Profile through MOSS Web Services</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#7283105</link><pubDate>Mon, 28 Jan 2008 11:44:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7283105</guid><dc:creator>Aziz</dc:creator><description>&lt;p&gt;i was trying to make a form with a field that contain Employee name i found the best way to do so is&lt;/p&gt;
</description></item><item><title>Copyright Revewals &amp;raquo; InfoPath Team Blog : Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#8343920</link><pubDate>Sun, 30 Mar 2008 04:50:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8343920</guid><dc:creator>Copyright Revewals » InfoPath Team Blog : Goodbye WhoAmI! Hello userName()</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://copyrightrenewalsblog.info/infopath-team-blog-goodbye-whoami-hello-username/"&gt;http://copyrightrenewalsblog.info/infopath-team-blog-goodbye-whoami-hello-username/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#8625250</link><pubDate>Fri, 20 Jun 2008 14:23:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8625250</guid><dc:creator>vishwaswamy</dc:creator><description>&lt;p&gt;I am trying to develop an application using infopath 2003.&lt;/p&gt;
&lt;p&gt;but i cant find the above Username() field in my insert function box, is the any other pre-settings to be done?&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#8641915</link><pubDate>Mon, 23 Jun 2008 15:49:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8641915</guid><dc:creator>infopath</dc:creator><description>&lt;p&gt;Hi vishwaswamy,&lt;/p&gt;
&lt;p&gt;As per the information at the beginning of this post, the &amp;quot;userName()&amp;quot; function is new to InfoPath 2007 - as such, you will not find this in InfoPath 2003.&lt;/p&gt;
&lt;p&gt;Now, if you stated you were using InfoPath &amp;quot;2003&amp;quot; in error, then this function is available in the UI. Here is a sample for finding the function:&lt;/p&gt;
&lt;p&gt;- Add a button to your View&lt;/p&gt;
&lt;p&gt;- Add a Rule to the Button&lt;/p&gt;
&lt;p&gt;- Add an Action to the Rule as follows:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Action: Set a field'a value&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Field: Select the field where you want to set the user&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Value: Click the &amp;quot;fx&amp;quot; button&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Click Insert Function&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Select &amp;quot;All&amp;quot; in the Categories list&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Scroll to the bottom of the Functions list and you will see &amp;quot;userName&amp;quot;&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#8712694</link><pubDate>Wed, 09 Jul 2008 18:13:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8712694</guid><dc:creator>john@thibeaux.com</dc:creator><description>&lt;p&gt;I have a question about using this function. It works find when the form loads. I however am trying to get the function to recalculate after the same form is opened again later. How does this work? Pease point me in the right direction. Thanks. &lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9044964</link><pubDate>Wed, 05 Nov 2008 22:00:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9044964</guid><dc:creator>cgk</dc:creator><description>&lt;p&gt;Hi everyone!&lt;/p&gt;
&lt;p&gt;I am having what seems to be the same issue that by john@thibeaux.com posts about and I am wondering if anyone has a solution.&lt;/p&gt;
&lt;p&gt;More specifically, I am trying to get the userName() &lt;/p&gt;
&lt;p&gt;function to recalculate after the same form is opened by another person. The reason this is important in this effort is that we want to use the response to determine user role so that we can do dynamic view switching in InfoPath.&lt;/p&gt;
&lt;p&gt;Even more specifically - This InfoPath form is expected to be opened, filled out, or later edited using a browser through SharePoint 2007 form Services.&lt;/p&gt;
&lt;p&gt;Any responses would be appreciated. TIA&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9531383</link><pubDate>Sat, 04 Apr 2009 15:44:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531383</guid><dc:creator>firouz</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I have a problem in this case. I have Used This method but I want that every time someone open the form, it get the new username dynamically. but the form always save the first username it has got. help me please&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9533711</link><pubDate>Mon, 06 Apr 2009 15:43:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9533711</guid><dc:creator>infopath</dc:creator><description>&lt;p&gt;Hi firouz,&lt;/p&gt;
&lt;p&gt;When using the &amp;quot;userName&amp;quot; function in the default value property as described here, this only changes (i.e. sets the property) when it is blank. If you need to get the user name each time the form is opened, you will need to do these steps:&lt;/p&gt;
&lt;p&gt;1) Remove the &amp;quot;userName&amp;quot; function from the default value property of your text box control&lt;/p&gt;
&lt;p&gt;2) From the Tools menu choose Form Options&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Select the Open and Save category&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Click the Rules button&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Click Add&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Click Add Action&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - From the &amp;quot;Action&amp;quot; dropdown box choose &amp;quot;Set a field's value&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Click the button next to the &amp;quot;Field&amp;quot; box and select the data source node where you previously had the &amp;quot;userName&amp;quot; function set as the default value&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; - Click the &amp;quot;fx&amp;quot; button next to Value, click Insert Function and insert the &amp;quot;userName&amp;quot; function&lt;/p&gt;
&lt;p&gt;What this will now do is fire the &amp;quot;userName&amp;quot; function and set your node each time the form is opened.&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9852455</link><pubDate>Wed, 29 Jul 2009 22:26:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852455</guid><dc:creator>Nick H</dc:creator><description>&lt;p&gt;Goodbye userName()! &amp;nbsp;Hello WhoAmI? *cry*&lt;/p&gt;
&lt;p&gt;The link at the top of the blog to the WhoAmI web service (tutorial I assume?) is dead.&lt;/p&gt;
&lt;p&gt;Instead of installing Infopath 2007 on everyone's computers just to allow me to use the userName() function, I wanted to look into using the WhoAmI codeless method for Infopath 2003 (which everyone has installed). &amp;nbsp;The problem is I cant find any good tutorials as to how to set it up.&lt;/p&gt;
&lt;p&gt;Any links or help is much apprieciated.&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9852466</link><pubDate>Wed, 29 Jul 2009 22:44:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852466</guid><dc:creator>infopath</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;Take a look at this MSDN article as it has the &amp;quot;WhoAmI&amp;quot; web service in there...it's pretty easy to setup:&lt;/p&gt;
&lt;p&gt;HTTP Security and ASP.NET Web Services&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms996415.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms996415.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/infopath/archive/2006/05/26/608092.aspx#9853455</link><pubDate>Thu, 30 Jul 2009 18:42:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853455</guid><dc:creator>Nick H</dc:creator><description>&lt;p&gt;Thank you Scott I''ll give it a shot.&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;
</description></item></channel></rss>