/
B25.Test_FormHelper.TestSearchContext

B25.Test_FormHelper.TestSearchContext

 

Overview

Object that is used to specify the context for a search event.

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.

Example lookup search

// this simulates the user typing 'conta' into the Contact lookup on a reservation B25.Test_FormHelper.TestSearchContext searchContext = new B25.Test_FormHelper.TestSearchContext(); searchContext.toSearchSObjectType = Contact.SObjectType; searchContext.parentSObjectType = B25__Reservation__c.SObjectType; searchContext.searchTerm = 'conta'; searchContext.fieldName = 'B25__Contact__c';

Example dimension junction search

// this simulates the user typing 'conta' into the Contacts list on a reservation B25.Test_FormHelper.TestSearchContext searchContext= new B25.Test_FormHelper.TestSearchContext(); searchContext.toSearchSObjectType = Contact.SObjectType; searchContext.toCreateSObjectType = B25__ReservationContact__c.SObjectType; searchContext.searchTerm = 'conta'; searchContext.fieldName = 'B25__Contact_Lookup__c';

Properties

Name

Type

Description