...
Code Block |
---|
B25.FormField titleField = form.getField(B25__Reservation__c.B25__Title__c); |
...
getSection
Code Block |
---|
B25.FormSection getSection(String sectionName) |
This method will return a Section object. The sectionName must be an existing section label.
Return value:B25.FormSection
Parameters:
Name | Type | Description |
---|---|---|
sectionName | String | The label of the section to interact with. |
Example:
Code Block |
---|
B25.FormSection section = form.getSection('Pricing'); |
...
getLookup
Code Block |
---|
B25.Lookup getLookup(SObjectField fieldToken) |
Similar to getField, but instead this method will return a Lookup object for the specified SObjectField. The SObjectField must be an existing lookup field on reservation.
Return value:B25.Lookup
Parameters:
Name | Type | Description |
---|---|---|
fieldToken | The token representing the lookup for which you want to get a FormField instance. |
...
Returns the related list associated with the passed SObjectType token. The SObjectType must be a child of the form’s SObjectType (which is currently always B25__Reservation__c).
Return value:B25.RelatedList
Parameters:
Name | Type | Description |
---|---|---|
sObjectToken | The token representing the child object type for which you want to get a RelatedList instance. |
...
This method is intended to be used in the customize method defined in your implementation of the B25.Form.Customizable interface. Using it anywhere else, such as inside one of your event handlers, will not have any effect.
Note |
---|
Because this method returns a reference to the actual list (and not a copy), any changes you make to this list will directly affect the defined handlers. |
Return value: List<B25.FormEventHandler>
...
onInit (with parameter)
Code Block |
---|
void onInit(B25.FormEventHandler handler) |
...
Name | Type | Description |
---|---|---|
handler | The handler to trigger when the form is initialized. |
...
This method is intended to be used in the customize method defined in your implementation of the B25.Form.Customizable interface. Using it anywhere else, such as inside one of your event handlers, will not have any effect.
Note |
---|
Because this method returns a reference to the actual list (and not a copy), any changes you make to this list will directly affect the defined handlers. |
Return value: List<B25.FormEventHandler>
...
onBeforeSave (with parameter)
...
Name | Type | Description |
---|---|---|
handler | The handler to trigger when the form is saved (before performing the actual save logic). |
...
Name | Type | Description |
---|---|---|
button | The button to be added to the form. |
...