Skip to main content

Posts

Showing posts from 2014

Quick Tips: Merge fields in Visualforce

As most of my colleagues know me, I have always struggled to remember fieldnames, action names and have hard time copying names of fields from Object detail page and put them onto a Visualforce page, while creating merge fields. I just wanted to share a small tip for all those who share my "struggle" and want to have an easy way to get around that. If you are an eclipse user, Force.com plugin comes up with a very handy tool. Following are the tips to use it:- Open visualforce page in eclipse Open right click menu Click on Force.com> Insert Merge Field Voilla, you have all the objects listed in left hand list and on selecting an object, their fields gets populated in right hand list (as shown below) Additionally, you can also lookup standard actions available by selecting "$Actions" in the left hand list and it would display a list of all actions available (as per screenshot below):- Hope this helps your visualforce development and don't m

Sneak Peek: Encrypted Custom Fields

What? Alphanumeric fields which would contain data in encrypted form. Mostly to be used in case of government regulations, as they have processing overhead and certain limitations for e.g. these fields cannot be unique, indexed or have default values. Also, there is a limit of 175 characters. Where? Custom encrypted fields can be be used in various applications and can be displayed on page layouts and can be even included for validations via validation rules and apex code. Why? Certain business needs or government regulations require certain data to be stored in encrypted state and displayed in masked form. For e.g. Social security numbers or credit card numbers. Salesforce makes it easy to achieve it via Custom encrypted fields.  How? Custom encrypted fields can be created as just another custom field with type selected as " Text (Encrypted) ". Master Encryption key key to be used for data encryption can be managed via " Certificate and Key Management " und