You need to sign in to do that
Don't have an account?
prati@salesforce
Same vf page to be seen by different users
Hi all
I have overidden a the view of a custom object using a vf page which has an apex;chatter component. I have two differnt profiles and both have access to this object and vf page. But for one of the profile, I dont want them to see the chatter feed, but all other tabs and components can be seen. I dont want to deactivate chatter either for that profile because they still need chatter for other objects.
How can this be done? I thought of using two differnt exactly same vf page and removing chatter from one of them and then crreate a separate vf page just to navigate to that vf page based on the profile condition, but i dont know how to implement it.
Any help would be highly appreciated.
Thank you
I have overidden a the view of a custom object using a vf page which has an apex;chatter component. I have two differnt profiles and both have access to this object and vf page. But for one of the profile, I dont want them to see the chatter feed, but all other tabs and components can be seen. I dont want to deactivate chatter either for that profile because they still need chatter for other objects.
How can this be done? I thought of using two differnt exactly same vf page and removing chatter from one of them and then crreate a separate vf page just to navigate to that vf page based on the profile condition, but i dont know how to implement it.
Any help would be highly appreciated.
Thank you
The best way to conditionally display some components on VF page is using Rendered options on Apex Components, please try below sameple code.
Hope this will help you, do let me know if you need more insight on this.
Thanks,
Gaurav
All Answers
Can you please elaborate?
The best way to conditionally display some components on VF page is using Rendered options on Apex Components, please try below sameple code.
Hope this will help you, do let me know if you need more insight on this.
Thanks,
Gaurav
Actually its a chatter component which I dont want to show to for one profile and that chatter component already has a rendered attribute.
<chatter:feedWithFollowers rendered="{!$Setup.ChatterStatus__c.Claim_Chatter__c}" entityId="{!Claim__c.id}"/>.
Can I have multple rendered attribute?