Another Salesforce blog!!!

Salesforce, Apex

December, 2016

Validation Rules

Budget Known must be Checked.

Can we win this opportunity must be “Yes”, if “No”, Can we win this opportunity Desc cannot be null.

Contract Signed must be Checked. if StageName = ‘Negotiations’

Product and Pricing Multi-Select Picklist must have at least one value.

Shortlisted must be Top 3, Top 5 […]

Converting GMT into Locale Users Time Zone


TimeZone with Visualforce page date/time

Some months ago I had a project where I needed to show what date and time an order was processed in Eastern regardless of who submitted the order and their related timezone. Google will quickly show the light for how to display date/time using the timezone set on the user profile or GMT. So the […]

Object fields limit Favorite

Counting how many fields I have available on an object


Please wait message


Pagination using StandardSetController


Ajax wild card search


apex:page readOnly=true

If you choose to use the to render your table you are normally limited to 1000 items in the collection that it iterates over. If you set the readOnly attribute on the

Considerations When Using OFFSET

I have just learned that maximum offset is 2,000 rows according to the documentation below: Which is annoying, since the standard query can return up to 50k records. Which means that you can hit the offset as soon as the 20th page (on a 100/page configuration) by using datatable. Just keep in mind Favorite