B25.RelatedListItem

Overview

Methods

getField

1 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:

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

getLookup

1 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:

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

getRecord

1 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

1 String getGuid()

Returns the unique identifier for this list item.

Return value: String


remove

1 void remove()

Removes this item from the parent list.

On this page