Event.Base()

Event.Base() calls the base DEACOM function for the given event. Scripts that are attached to events should call Event.Base() to allow the base DEACOM functionality to fire. This is available to scripting to allow users the ability to call the base functionality whenever they want in a given script. The Event.Base() can happen anywhere in the script to allow you to do stuff before and/or after the base DEACOM functionality fires.

Note:

  • You should never call Event.Base() more than once in a given script.
  • You should always call Event.Base() in a script attached to an event in DEACOM.
    • Some current events do not have a base call in Deacom, but may get base calls in the future. This will future proof your scripts.
  • Starting in 16.05 on the Sales Order Header (neword1) form, changes to the values of other User-defined fields set within a script require an immediate call to Event.Invoke().
    • Please test your scripts to make sure the Event.Base() is working correctly in your version before deciding if you need to add Event.Invoke() .

Applies To

Properties and Methods

None

Available

The .Base() method is available in:

  • 15.03.016
  • All newer builds

Note: The .Base() method and all sub-classes, properties, and methods are only available in Form Layout scripts .

Type

Method

Syntax

Event.Base();

Parameters

None

Example

Event.Form.YesNo('This is before Event.Base()');

Event.Base();

Event.Form.YesNo('This is after Event.Base()');

 

/* Expected Prompt response:

This is before Event.Base()

*/

//--Event.Base() fires the base DEACOM functionality

/* Expected Prompt response:

This is after Event.Base()

*/