<?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/b/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>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/infopath/archive/2006/05/26/608092.aspx#10406364</link><pubDate>Fri, 29 Mar 2013 18:25:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10406364</guid><dc:creator>Larry W Virden</dc:creator><description>&lt;p&gt;From what source does the userName() determine the value? The reason I ask is that we have encountered some cases where it appears that a few users were getting obsolete information. We then add the user to a group under the site collection in which the application is located, and then have the user try again, and the user succeeds. It is as if some users are recognized while others are not.&lt;/p&gt;
&lt;p&gt;Is there a function that InfoPath could run that would ensure the user would be recognized?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10406364" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/infopath/archive/2006/05/26/608092.aspx#10259489</link><pubDate>Mon, 23 Jan 2012 03:44:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259489</guid><dc:creator>Eric Lee</dc:creator><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;How can I get Displayname/Preferred Name out of the username() function.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259489" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/infopath/archive/2006/05/26/608092.aspx#10236128</link><pubDate>Fri, 11 Nov 2011 11:07:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10236128</guid><dc:creator>upender</dc:creator><description>&lt;p&gt;email id: could you please help me.&lt;/p&gt;
&lt;p&gt;im doing project with ns2.&lt;/p&gt;
&lt;p&gt;my problem is &amp;quot;how to make a node to dead randomly in ns2&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10236128" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/infopath/archive/2006/05/26/608092.aspx#10034186</link><pubDate>Sat, 03 Jul 2010 11:40:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10034186</guid><dc:creator>Sandeep </dc:creator><description>&lt;p&gt;How can i change the view based on user group, I have three groups User,Team member and manager and three forms based on their requirements. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10034186" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9853455" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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>infopath1</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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9852466" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9852455" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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>infopath1</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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9533711" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9531383" width="1" height="1"&gt;</description></item><item><title>re: Goodbye WhoAmI! Hello userName()</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9044964" width="1" height="1"&gt;</description></item></channel></rss>