Tag: visualforce
-
Creating multiple tabs for same Salesforce Object
Many time I have seen Salesforce Admins wants multiple tabs for same object depending upon the RecordTypes or some other criteria like separate tabs for Premium Account, Gold Accounts and Silver. Indeed they can create multiple views and use the picklist and use “Go” button. But it has disadvantage like multiple clicks, not that user…
-
Salesforce: Accessing Field label of object in VisualForce page
In VFPage one can directly access the label of any particular field of sObject. In future if the label is changed in the sObject, same will be reflected in the VFPage. For Example: <apex:column title=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” headerValue=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” width=”50px”> It also avoids hard-coded labels and make it more flexible.