You need to sign in to do that
Don't have an account?
Abhilash Gupta 10
To Display the Tab Settings Permission in a VF Page
Hi All,
How to get the Tab Settings(Default on,Default off,Tab Hidden) of all the Profile in a Vf Page?
Regards
Abhilash
How to get the Tab Settings(Default on,Default off,Tab Hidden) of all the Profile in a Vf Page?
Regards
Abhilash
Create a permission Set : Setup -> Manage Users -> Permission Set -> New
Label – Tab Permissions
API Name – Tab_Permissions
User License – Salesforce
Create apex class: Create a Page: In the above code we have used render attribute in the <apex:tab>, so the third tab will not be visible to the current user. Now assign the newly created permission set “Tab permission” to the logged in user and refresh the page, It will be displayed in the page now.
To assign permission set:
Setup-> Manage Users-> Permission sets-> “Tab permissions” -> Manage permissions -> Add assignments -> check required users -> Assign.
This is one of the ways that we can control the visibility of any of the tab in a Visualforce page using apex.
Thanks.
My Requirement is:
I have 2 picklist field a) Profile 1 b) Profile 2
After selecting these two ,I want to display the Tabs setting Permission in a VF page related to those two Profiles.
For Ex: If i select Profile 1="Sys Admin" and Profile 2="Read Only " then it should display:
Accounts: Default On Accounts: Default Off
Price Books Default Off Leads Default On
Console Tab Hidden Opportunity:Default On...
Contacts Default On...and so on
Regards
Abhilash