You need to sign in to do that
Don't have an account?
Sushma Ramakrishnan
Help to set different list view based on IF condition for Profile in visualforce page
Hi All,
I have 3 Profiles(Profile 1,Profile 2,Profile 3) and 3 List Views(List View 1,List View 2 & List View 3):
When user with "Profile 1" loggsin and clicks on "Invoice" object then List View 1 should be displayed on Tab Click.The below is my code for doing that.Within this code now i need to apply "IF Condition for Profile and List View Id".Please help me do this.
Thanks for Any & All Help...!
I have 3 Profiles(Profile 1,Profile 2,Profile 3) and 3 List Views(List View 1,List View 2 & List View 3):
When user with "Profile 1" loggsin and clicks on "Invoice" object then List View 1 should be displayed on Tab Click.The below is my code for doing that.Within this code now i need to apply "IF Condition for Profile and List View Id".Please help me do this.
<apex:page showHeader="true" tabStyle="Invoice__c" action="/a3R?fcf=00B23000000O2Ou" ></apex:page>
Thanks for Any & All Help...!
Had to tweek your code as below :
All Answers
<apex:page showHeader="true" tabStyle="Invoice__c" action="if($Profile.Name ='Profile 1',/a3R?fcf=ListView1Id,(if($Profile.Name ='Profile 2',/a3R?fcf=ListView2Id,(if($Profile.Name ='ListView3Id',/a3R?fcf=00B23000000O2Ou,false)))">
</apex:page>
Had to tweek your code as below :