Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

Execute custom logic whenever an event is modified.


Booker25 allows you to define an interface which you can use to add your own custom logic whenever the Reservation Template being edited changes. You can use this to update dependent fields or display validation errors, for example.


 To add your own logic on Template editing:

  1. Create a global class that implements the Callable interface (see https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_System_Callable.htm).
  2. Create a Custom Setting (of type B25 System Setting) with name 'Template On Change Class' and as value the name of the class you created in step 1.
  3. Implement the call method to handle the getChangeHandlerInfo action.
  4. Implement the call method to handle the onChange action.

Implementing getChangeHandlerInfo

...