Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Overview

Object that is used to specify the related list sObject change event inside of unit tests.

To test your custom form API implementation you need to be able to specify the event that is being fired this class represents the related list add or remove event data.

Example

B25.Test_FormHelper.TestRelatedListEvent changeEvent = new B25.Test_FormHelper.TestRelatedListEvent();
formContext.relatedSObjectType = B25__ReservationContact__c.SObjectType;
formContext.addedSObjectId = someContact.Id;
formContext.changedRelatedListItem = new B25__ReservationContact__c(
  B25__Contact_Lookup__c = someContact.Id
);

Properties

Name

Type

Description

relatedSObjectType

SObjectType

The sObjectType of the related list.

addedSObjectId

String

The id of the dimension sObject that has been clicked on. If this option was a custom option it should be set to that custom options Id.

changedRelatedListItem

SObject

The deleted or added related list item.

On this page

  • No labels