<?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>Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx</link><description>What are Roles? Without going much in detail, InfoPath roles is a functionality where you can define user tags like "Sales", "Management" and utilize them in your form logic. This enables some very interesting scenarios in the forms space. For a detailed</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>InfoPath 2007 + Forms Services +Roles &amp;laquo; Sharing Points</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#1948616</link><pubDate>Mon, 26 Mar 2007 01:21:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1948616</guid><dc:creator>InfoPath 2007 + Forms Services +Roles « Sharing Points</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://stephenmuller.wordpress.com/2007/03/25/infopath-2007-forms-services-roles/"&gt;http://stephenmuller.wordpress.com/2007/03/25/infopath-2007-forms-services-roles/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#2114130</link><pubDate>Fri, 13 Apr 2007 15:21:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2114130</guid><dc:creator>sayangh</dc:creator><description>&lt;p&gt;I know it sounds stupid but is there a special way to add hidden fields or we need to insert a text box and somehow make its visibility false? More, I cannot set the second formula with XPath and &amp;nbsp;UserName() function does not show the user name on the textbox. Can u detail on these a bit? I am brand-new to Infopath :(&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#2153124</link><pubDate>Mon, 16 Apr 2007 14:51:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2153124</guid><dc:creator>sayangh</dc:creator><description>&lt;p&gt;Correct me if I am wrong, but I think the correct formula to use for &amp;quot;CurrentRole&amp;quot; would be &amp;quot;users[username = userName()]/../name&amp;quot;, at least that is working fine for me. In the xml, the username node is not a child but a sibling to name and thus name[username = CurrentUser] is not actually working. Am I doing something wrong? Also, I have solved the mystery of the UserName() thing....I should keep it as a rule which evaluates it when the form loads.&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#3081375</link><pubDate>Mon, 04 Jun 2007 16:31:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3081375</guid><dc:creator>pmdci</dc:creator><description>&lt;p&gt;Neither&lt;/p&gt;
&lt;p&gt;name[username = CurrentUser]&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;users[username = userName()]/../name&lt;/p&gt;
&lt;p&gt;is working for me. The error I get is: &amp;quot; does not point to a valid location path of a field or group.&amp;quot;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pedro&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#3081930</link><pubDate>Mon, 04 Jun 2007 17:21:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3081930</guid><dc:creator>pmdci</dc:creator><description>&lt;p&gt;ok, according to Sayagh, this is how I got my CurrentRole formula:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;FetchRoles&amp;quot;)/roles/role/users[xdXDocument:GetDOM(&amp;quot;FetchRoles&amp;quot;)/roles/role/users/username = xdUser:get-UserName()]/../name&lt;/p&gt;
&lt;p&gt;However, no matter which user I am under, Currentrole always returns the first role on the list (which I called &amp;lt;name&amp;gt;Conception&amp;lt;/name&amp;gt;).&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Pedro&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#7017314</link><pubDate>Mon, 07 Jan 2008 19:51:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7017314</guid><dc:creator>shashikant12</dc:creator><description>&lt;p&gt;Please check my blog for complete solution.&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#9795618</link><pubDate>Sun, 21 Jun 2009 18:11:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9795618</guid><dc:creator>ClaytonCobb</dc:creator><description>&lt;p&gt;Here's my method of doing this: &lt;a rel="nofollow" target="_new" href="http://claytoncobb.wordpress.com/2009/06/14/user-roles-in-browser-enabled-forms/"&gt;http://claytoncobb.wordpress.com/2009/06/14/user-roles-in-browser-enabled-forms/&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: Implementing Roles in Browser Forms</title><link>http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx#9840928</link><pubDate>Mon, 20 Jul 2009 08:43:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9840928</guid><dc:creator>ClaytonCobb</dc:creator><description>&lt;p&gt;I've improved my method and am now utilizing Active Directory security groups and distribution lists for defining my roles in browser forms:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/"&gt;http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>