Reply
Regular Contributor
Akhil
Posts: 147
0

Clarification on usage of Rendered tag

HI , 

 

In My Vf Page i am using some condition by using rendered tag. this page is used for enetering Opportunity line items.

 

So we can eneter Opp line items only on open opportunites so to check whether Opp is Open or closed i am using the below tag. if it is Open then display the service entery page.

 

<apex:outputPanel id="lineItemdetails" rendered="{!Opp.isClosed == false}"> 

 

And now my question is my company wants me to exempts 5 profiles from this can i just add an OR condition and give something like $user.profile .

 

Thanks

Akhil.

Super Contributor
kiran_mutturu
Posts: 1,204
0

Re: Clarification on usage of Rendered tag

yes you can do that but u can make use of $profile.name directly to get the current user's profile name..... but i will suggest you to work in a different way like to make this dynamic...make be your requirement is for 5 rpofiles as of now. but in future it may increase or decrease in that scenario u need to edit the code to view the changes....like you can make use of custom settings , apex to make it dynamic..by this admin can change the custom seetings in the custom settings itself .....hope this helps u

Certified Force.com Developer, Certified Administrator, Certified Service cloud consultant

My Blog

Kiran