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

Favorite

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

http://resources.docs.salesforce.com/204/14/en-us/sfdc/pdf/salesforce_app_limits_cheatsheet.pdf Favorite

Counting how many fields I have available on an object

Favorite

Please wait message

Favorite

Pagination using StandardSetController

Favorite

Ajax wild card search

Favorite

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: http://www.salesforce.com/us/developer/docs/soql_sosl/Content/sforce_api_calls_soql_select_offset.htm 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