<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CRM4: Hide Fields or Tabs by Role with Javascript</title>
	<atom:link href="http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/</link>
	<description>Achieving it all with Microsoft Dynamics CRM™</description>
	<lastBuildDate>Sun, 29 Jan 2012 17:04:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1491</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Tue, 01 Nov 2011 16:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1491</guid>
		<description>The client side scripting in CRM 2011 supports hiding tabs and sections natively.  I did a post on using a visibility resource, and it is posted &lt;a href-&quot;http://mscrmblogger.com/2011/02/24/crm-2011-toggle-visibility/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.  You may find that information more helpful.  If you are just trying to get the user role, Mitch Milam posted a great article on how to do it with CRM 2011 &lt;a href=&quot;http://blogs.infinite-x.net/2010/11/16/retreiving-user-roles-in-crm-2011/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>The client side scripting in CRM 2011 supports hiding tabs and sections natively.  I did a post on using a visibility resource, and it is posted <a href-"http://mscrmblogger.com/2011/02/24/crm-2011-toggle-visibility/" rel="nofollow">here</a>.  You may find that information more helpful.  If you are just trying to get the user role, Mitch Milam posted a great article on how to do it with CRM 2011 <a href="http://blogs.infinite-x.net/2010/11/16/retreiving-user-roles-in-crm-2011/" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anita</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1489</link>
		<dc:creator>anita</dc:creator>
		<pubDate>Tue, 01 Nov 2011 09:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1489</guid>
		<description>i am using crm 2011. so there is need to change path of crm services</description>
		<content:encoded><![CDATA[<p>i am using crm 2011. so there is need to change path of crm services</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1282</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Tue, 23 Aug 2011 18:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1282</guid>
		<description>Are you using CRM 4 or CRM 2011?</description>
		<content:encoded><![CDATA[<p>Are you using CRM 4 or CRM 2011?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1278</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Tue, 23 Aug 2011 05:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1278</guid>
		<description>If I have to hide coloumn on the grid on the basis of roles.....then what action should i have to take.</description>
		<content:encoded><![CDATA[<p>If I have to hide coloumn on the grid on the basis of roles&#8230;..then what action should i have to take.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1185</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Tue, 31 May 2011 21:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1185</guid>
		<description>If you do this, then it will work the way I think you intended:

HideFieldByRole(&#039;role1&#124;role2&#039;, UserRoles,  crmForm.all.newfield1);</description>
		<content:encoded><![CDATA[<p>If you do this, then it will work the way I think you intended:</p>
<p>HideFieldByRole(&#8216;role1|role2&#8242;, UserRoles,  crmForm.all.newfield1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JOSE</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-1180</link>
		<dc:creator>JOSE</dc:creator>
		<pubDate>Fri, 27 May 2011 22:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-1180</guid>
		<description>i tried your code, and it works, but i did this, 

HideFieldByRole(&#039;role1&#039;, UserRoles,crmForm.all.newfield1);
HideFieldByRole(&#039;role2&#039;, UserRoles,crmForm.all.newfield1);

the objective is that the users with role1 and role2 cant see the fields,
ok, the problem is that the code hide both field on all the cases, even if the current user just have a third and a different role like role3</description>
		<content:encoded><![CDATA[<p>i tried your code, and it works, but i did this, </p>
<p>HideFieldByRole(&#8216;role1&#8242;, UserRoles,crmForm.all.newfield1);<br />
HideFieldByRole(&#8216;role2&#8242;, UserRoles,crmForm.all.newfield1);</p>
<p>the objective is that the users with role1 and role2 cant see the fields,<br />
ok, the problem is that the code hide both field on all the cases, even if the current user just have a third and a different role like role3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-525</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Tue, 22 Feb 2011 15:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-525</guid>
		<description>It is possible with CRM 2011, you would retrieve the systemuser.</description>
		<content:encoded><![CDATA[<p>It is possible with CRM 2011, you would retrieve the systemuser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Security Roles of current/online user &#171; Arvind&#39;s CRM Blog</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-517</link>
		<dc:creator>How to Security Roles of current/online user &#171; Arvind&#39;s CRM Blog</dc:creator>
		<pubDate>Fri, 26 Nov 2010 19:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-517</guid>
		<description>[...] Jimmy Wang’s version. [...]</description>
		<content:encoded><![CDATA[<p>[...] Jimmy Wang’s version. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maximixa</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-516</link>
		<dc:creator>maximixa</dc:creator>
		<pubDate>Wed, 10 Nov 2010 09:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-516</guid>
		<description>in the mask of the opportunity detail i have to SHOW some field to some user . the user who can see this particular fields, in the opportunity details, has some features in the user entity.

in substance, I NEED TO READ BY JAVASCRIPT, IN THE OPPORTUNITY DETAIL, SOME FIELD OF THE USER ENTITY.

IS IT POSSIBLE ?

i think that if i can read the user role, i could read user filed, but i don&#039;t know how.

help me, please.

thanks to everyone.</description>
		<content:encoded><![CDATA[<p>in the mask of the opportunity detail i have to SHOW some field to some user . the user who can see this particular fields, in the opportunity details, has some features in the user entity.</p>
<p>in substance, I NEED TO READ BY JAVASCRIPT, IN THE OPPORTUNITY DETAIL, SOME FIELD OF THE USER ENTITY.</p>
<p>IS IT POSSIBLE ?</p>
<p>i think that if i can read the user role, i could read user filed, but i don&#8217;t know how.</p>
<p>help me, please.</p>
<p>thanks to everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/hide-fields-or-tabs-by-role-with-javascript/comment-page-1/#comment-512</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Wed, 11 Aug 2010 16:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=131#comment-512</guid>
		<description>René, Are you getting an error somewhere? The UserHasRole returns true if the user has the role, so if you are trying to hide something if they are not a system administrator then you need to reverse it using the not operator (!).</description>
		<content:encoded><![CDATA[<p>René, Are you getting an error somewhere? The UserHasRole returns true if the user has the role, so if you are trying to hide something if they are not a system administrator then you need to reverse it using the not operator (!).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

