zhubaotian

zhubaotian

2 articles

Salesforce AddError

First,let's have a look at Salesforce API about adderror: addError(errorMsg)Marks a record with a custom error message and prevents any DML operation from occurring. Notice that the first word is 'Marks', means this function will not stop any script. I wrote a trigger for test this. triggertestAd... >>

Use VisualForce Page Action Create Custom Button

Before creating a custom button or link, determine what action you want to occur when a user clicks it. Consider aVisualforcepage if you want the button or link to launch a custom page or other code(salesforce help). We can execute Javascript or Apex Class within a visualforce page action.But we wil... >>