Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
Excerpt |
---|
This class represents one of the entries in a related list. |
Full description. Define the purpose of the class, as well as where to get an instance of this class (if applicable). If this class extends another class, make sure to mention it here.
Example
Code Block |
---|
global with sharing class MyClass {
} |
Methods
methodOne
Code Block |
---|
ReturnType methodOne(ParameterType param1, ParameterType param2) |
Description. Describe what the method does, what it expects, and what it outputs. Describe any cases in which the method might not work as expected. Describe any exceptions that this method is likely to throw.
Return value: ReturnType (link to relevant doc)Methods
getField
Code Block |
---|
B25.FormField getField(SObjectField fieldToken) |
This method will return a Field object for the specified SObjectField. The SObjectField must be an existing field on the SObjectType of the list. For example, if you are on the out-of-the-box Contacts related list, the field must exist on B25__ReservationContact__c.
Return value:B25.FormField
Parameters:
Name | Type | Description |
---|---|---|
fieldToken | The token representing the field for which you want to get a FormField instance. |
Example:
Code Block |
---|
B25.FormField titleField = form.getField(B25__Reservation__c.B25__Title__c); |
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 the SObjectType of the list. For example, if you are on the out-of-the-box Contacts related list, the field must be a lookup that exists on B25__ReservationContact__c.
Return value:B25.Lookup
Parameters:
Name | Type | Description |
---|---|---|
param1 | ParameterType (link to relevant doc) | The first parameter. |
param2 | ParameterType (link to relevant doc) | The second parameter. |
methodTwo
Code Block |
---|
ReturnType methodTwo(ParameterType param1, ParameterType param2) |
Description. Describe what the method does, what it expects, and what it outputs. Describe any cases in which the method might not work as expected. Describe any exceptions that this method is likely to throw.
Return value: ReturnType (link to relevant doc)
Parameters:
Name | Type | Description | ||
---|---|---|---|---|
param1 | ParameterType (link to relevant doc) | The first parameter. | ||
param2 | ParameterType (link to relevant doc) | The second parameterfieldToken | The token representing the lookup for which you want to get a FormField instance. |
Example:
Code Block |
---|
B25.Lookup resourceLookup = form.getLookup(B25__Reservation__c.B25__Resource__c); |
getRecord
Code Block |
---|
SObject getRecord() |
Returns the record that this list item represents. For example, if you are on the out-of-the-box Contacts related list, this method wil return a B25__ReservationContact__c.
Return value: SObject
getGuid
Code Block |
---|
String getGuid() |
Returns the unique identifier for this list item.
Return value: String
remove
Code Block |
---|
void remove() |
Removes this item from the parent list.
On this page | |
---|---|
|