Skip to main content
Skip table of contents

B25.RelatedListItem

Overview

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

Methods

getField

CODE
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

SObjectField

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

Example:

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

getLookup

CODE
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

fieldToken

SObjectField

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

Example:

CODE
B25.Lookup resourceLookup = form.getLookup(B25__Reservation__c.B25__Resource__c);

getRecord

CODE
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
String getGuid()

Returns the unique identifier for this list item.

Return value: String


remove

CODE
void remove()

Removes this item from the parent list.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.