A Tip A Day #38 – PageBlockTable Wrap Text

This post is a part of the daily blog series  A Tip A Day, daily dosage of learning! Day #38 - Wrap Text in PageBlockTable Columns I have a pageBlockTable on Products.  The table displays Product Name and its Description.  The description field is long text area and generally, the descriptions length is long.  In fact, …

A Tip A Day #36 – Display Image from Rich Text Field in VF Page

This post is a part of the daily blog series  A Tip A Day, daily dosage of learning! Day #36 - Display Image from Rich Text Field in Visualforce Page I have a field of type Text Area (Rich)  called Product in a Contact object.  And I upload a picture to the field for one …

A Tip A Day #8 – Display Line Breaks of Long Text Area in VF Page

This post is a part of the daily blog series  A Tip A Day, daily dosage of learning!  Day #8 - Display Line Breaks of Long Text Area in a Visualforce page. I have a field of type long text area called "Description" in Products object.  The value of this is generally a couple of paragraphs …

7 Ways to Lock a Record in Salesforce

In this blog post, I'd be discussing the different ways to lock a Salesforce record in UI.  By lock, I mean, the user shouldn't be able to edit the field values of the record.  I have identified 7 ways to lock a record using configuration and coding. There is a general requirement that the Business doesn't …

Salesforce Code Scanner – Health Check

As a Salesforce Developer, have you ever worried about the code in your Salesforce org and wanted to check if: the code you have written/existing code is in line with the best practices? you have followed the coding guidelines suggested by Salesforce? there are any loop holes in the code that could cause severe security …

Visualforce Pagination with Dynamic Search

This post has a working example of dynamic search in a Visualforce page and the results shown with pagination. There are 4 field search criteria including date fields too which makes it more interesting.  The results upon clicking Search will display below the Search section with 4 buttons to paginate.  The Next/Last Page buttons grey …