You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Next »
To test your custom form API implementation you need to be able to specify the event that is being fired this class represents the Context for a search handler.
B25.Test_FormHelper.TestSearchContext changeEvent = new B25.Test_FormHelper.TestSearchContext(); changeEvent.toSearchSObjectType = Contact.SObjectType; changeEvent.parentSObjectType = B25__Reservation__c.SObjectType; changeEvent.searchTerm = 'conta'; changeEvent.fieldName = 'B25__Contact__c';
B25.Test_FormHelper.TestSearchContext changeEvent = new B25.Test_FormHelper.TestSearchContext(); changeEvent.toSearchSObjectType = Contact.SObjectType; changeEvent.toCreateSObjectType = B25__ReservationContact__c.SObjectType; changeEvent.searchTerm = 'conta'; changeEvent.fieldName = 'B25__Contact_Lookup__c';
Name
Type
Description
toSearchSObjectType
SObjectType
The sObject type that the search should search through.
toCreateSObjectType
The sObject type of the sObject that would be created as a result of the search result being clicked.
parentSObjectType;
The sObject the lookup you are overriding is present on.
searchTerm
String
The searchterm entered by the user
fieldName
The fieldname of the field on the toCreateSObjectType that the result of this search would be filled in on.
On this page