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 …

Quick Tip – Change Date format in Apex

If you use any date fields in Apex, it prints in this format System.debug('Date: '+contact.Date); Output:  2016-04-26 00:00:00 To change the format you can simply use: format() System.debug('Date: '+contact.Date.format()); Output:  26/04/2016  

Run Script After Sandbox Creation and Refresh

This feature is to make your sandbox environment business ready, automate data manipulation or business logic tasks or even to schedule your jobs. At sandbox creation, specify a single Apex class to perform the tasks. This class executes every time the sandbox is refreshed/copied. Create an Apex class that implements SandboxPostCopy and specify the class here. For example, the …

Dreamforce Wrap Up 2015!

Attended Dreamforce this year, my first time in forever and its been an awesome experience with great learning.  Travelled all the way from Singapore to San Francisco and Dreamforce didn't disappoint a bit.  This time Dreamforce is bigger than before with whopping 1,70,000 user registrations and 1600+ sessions and some rock entertainment in the Dreamfest (the Dreamforce …

Wrapper Class Multiple Value Sorting

Came across a scenario where I had to sort a wrapper class.  Normal list sorting is simple, list.sort(); would help.  But for a wrapper class, it's not straight-forward but it isn't that hard.  Below is a simple wrapper class without sorting - this wrapper has 2 columns : Area and AD. global class AreaWrapper{ public String …

New UI for Salesforce

Salesforce.com has a completely redesigned version of its core CRM product.  The new version has been designed with a cleaner, more modern looking interface. Here's the previous UI, now being referred to as Classic Salesforce UI And here's the switch to Lightning Experience The new version uses a navigation bar approach, abandoning the tabbed interface of …

Meet the “New Salesforce”

Big announcement coming from Salesforce just before Dreamforce this year (2015). Salesforce says it will be a whole "New Salesforce"! We're excited to share with you that our upcoming release will be our biggest, best, most game changing ever. And you are invited to an exclusive, early preview. Be the first in the world to get …