You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Next »
To test your custom form API implementation you need to be able to specify the event that is being fired this class represents the field change event data.
B25.Test_FormHelper.TestChangeEvent changeEvent = new B25.Test_FormHelper.TestChangeEvent(); formContext.sObjectField = B25__Reservation__c.B25__Quantity__c; formContext.newValue = 1; formContext.previousValue = 0;
Name
Type
Description
parentSObject
SObjectType
The sObject type of the sObject the field that is changing is on. Only required when testing related sObject field changes.
sObjectField
SObjectField
The field that is changing
newValue
Object
The new value of the field.
previousValue
The old value of the field
On this page