Sunday 15 February 2015

Common Trigger Problems


  1. Cascading Triggres
  2. Apex governor Limits
  3. Null Refernce errors
  4. Too many Soql 

Redirecting to a Standard Object List Page

For buttons or links that navigate a user to a standard tab, you can redirect the content to present a list of standard objects.

Create a Visualforce page with the following markup:


<apex:page action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"/>

Custom Labels and Error Messages

When set, the label attribute will be used for component-level error messages, for example, when a field is required or must be unique. Custom labels won't be used in custom error messages, and the default object field label will be used instead. If you set a label attribute to an empty string, the default object field label will be used in all error messages