B25.RelatedListItem

Overview

This class represents one of the entries in a related list.

Methods

getField

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

Name

Type

Description

fieldToken

SObjectField

The token representing the field for which you want to get a FormField instance.

Example:

B25.FormField titleField = form.getField(B25__Reservation__c.B25__Title__c);

getLookup

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

Name

Type

Description

fieldToken

SObjectField

The token representing the lookup for which you want to get a FormField instance.

Example:


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

Returns the unique identifier for this list item.

Return value: String


remove

Removes this item from the parent list.