function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rangaranga 

Easy way to Render VisualForce Components Dynamically

Found a nice way to render visualforce input fields, output fields etc. based on object level security.

 

You just have to use render="{!$ObjectType.custome_object__c.accessible}" 

for example:

If you want to render Skill__c object only for the users who can access that object, 

 

<apex:pageBlockSectionItem rendered="{!$ObjectType.Skill__c.accessible}"> this will do it for you.

 

http://forcearchitects.deliveredinnovation.com/2011/02/05/render-visualforce-components-dynamically-based-on-object-level-security/

IspitaIspita

Hi Ranga,

Thankx for the information shared . Seems like an easy way of implementation discovered by you.