I started creating a visual force page showing all users. But I would like to show only specified users (like admins only and then only sales users).
Is that somehow possible?
10 respostas
Hmmm......You can add an attribute named - rendered to the apex:column that would look at the Profile kinda like this: <apex:column
value="{!u.FirstName}"
rendered="{!IF(u.Profile.Name = 'xxxxx', TRUE, FALSE)}"/>
<apex:column
value="{!u.Sold_01_14__c}"
rendered="{!IF(u.Profile.Name = 'xxxxx', TRUE, FALSE)}"/>