Description: Runs the Listbox component's default formula after its reason selection changes.
Desktop execution: Runs after the reason selector is accepted and both the reason list and its summarized value have been written back. The component recalculates the DBForm before the formula and, when a valid formula exists, recalculates it again afterward. The second recalculation also occurs if formula calculation reports an error.
Web execution: The Listbox component type is implemented by the web ReasonEditor. Its change chain calls ExecFormula("OnBeforeChange") and then ExecFormula(""), but that executor ignores the requested event name and executes the same default OnChange formula both times. Consequently, one web change can execute this formula twice.
Arguments: There are no event-specific arguments. The component-specific executors do not populate Argument_EventName, Argument_SenderName or Argument_SenderID.
Result: Any value assigned to Result is ignored. Use the formula for side effects or entry assignments.
Example:
ShowMessage("The reason selection changed");