You need to sign in to do that
Don't have an account?
Vempally
Overriding a Page for Some, but not All, Users
Hi Everyone,
I've found the code for this at the following link,
http://developer.force.com/cookbook/recipe/overriding-a-page-for-some-but-not-all-users
but not able to understand the following "IF statement"
can anyone explain me what is happening in IF statement...
Iam a NEWBIE...
regards,
Suresh.
I've found the code for this at the following link,
http://developer.force.com/cookbook/recipe/overriding-a-page-for-some-but-not-all-users
but not able to understand the following "IF statement"
<apex:page action= "{!if($Profile.Name !='System Administrator', null, urlFor($Action.Account.Tab, $ObjectType.Account, null, true))}" standardController="Account" recordSetVar="accounts" tabStyle="Account"> <!-- Replace with your markup --> This page replaces your Account home page for all users except Administrators. </apex:page>
can anyone explain me what is happening in IF statement...
Iam a NEWBIE...
regards,
Suresh.
Here first it will check with the current logged-in user's profile is System Administrator or not,
If the condition is true that means the current logged-in user not a sys admin then returns null means it will display the cutten VF page as a result.
If the condition is false that means the current logged-in user is a Sys Admin then it will display the Standard Accoun's tab.
Please let me know if it helps.
Regards,
Mahesh