<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Switching Views based on People Picker and the current user (username())</title><link>https://www.infopathdev.com:443/forums/thread/104632.aspx</link><pubDate>Mon, 09 Nov 2015 14:47:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104632</guid><dc:creator>DDEBBABY</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=104632</wfw:commentRss><description>&lt;p&gt;All I want to do is add a condition that states if the logged in user is not the main author hide the field &lt;span&gt;&lt;font style="font-size:16pt;"&gt;&lt;strong&gt;Rewards &amp;amp; Recognition  Disposition&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;.  I cannot get this to work any clue what I am doing wrong? There are two conditions but cant get the second to work?&lt;/p&gt;&lt;p&gt;here is the issue&lt;/p&gt;&lt;p&gt;&lt;span&gt;main autor(people picker)&amp;nbsp;is pulling&lt;br /&gt;displayname&lt;br /&gt;account id&lt;br /&gt;accounttype&lt;br /&gt;&lt;br /&gt;and getuserprofile is pulling account name&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Switching Views based on People Picker and the current user (username())</title><link>https://www.infopathdev.com:443/forums/thread/88759.aspx</link><pubDate>Mon, 08 Apr 2013 09:14:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88759</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=88759</wfw:commentRss><description>Glad to hear it&amp;#39;s working! :)</description></item><item><title>Re: Switching Views based on People Picker and the current user (username())</title><link>https://www.infopathdev.com:443/forums/thread/88758.aspx</link><pubDate>Mon, 08 Apr 2013 08:55:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88758</guid><dc:creator>busola</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=88758</wfw:commentRss><description>&lt;p&gt;Thank you Mel,&lt;/p&gt;&lt;p&gt;The &lt;strong&gt;contains() function&lt;/strong&gt; works very well.&lt;/p&gt;</description></item><item><title>Re: Switching Views based on People Picker and the current user (username())</title><link>https://www.infopathdev.com:443/forums/thread/87744.aspx</link><pubDate>Thu, 07 Mar 2013 14:02:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87744</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87744.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=87744</wfw:commentRss><description>&lt;p&gt;Have you tried using the contains() function instead of comparing if they&amp;#39;re equal? There might be extra characters in the People Picker value that&amp;#39;s just not displaying. So your rule would be something like: if AccountID contains username(), then switch view.&lt;/p&gt;&lt;p&gt;If that still doesn&amp;#39;t work, try using the SharePoint list UserProfileSevice web service, GetUserProfileByName method.&lt;/p&gt;</description></item><item><title>Switching Views based on People Picker and the current user (username())</title><link>https://www.infopathdev.com:443/forums/thread/87740.aspx</link><pubDate>Thu, 07 Mar 2013 07:23:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87740</guid><dc:creator>SPGeek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87740.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=87740</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have created a web form where in the initial view a user enters the director&amp;#39;s name in a people picker field.&amp;nbsp; How can I switch to a Director&amp;#39;s view of the form where the director&amp;#39;s name in the people picker is compared against the current user viewing the form?&amp;nbsp; I have tried to compare the people picker DisplayName and the AcountID against username(), but neither seems to work because the returned values are different?&amp;nbsp; Does anybody have any suggestions? Thanks.&lt;/p&gt;</description></item></channel></rss>