INITIALIZER attribute

The INITIALIZER attribute allows you to specify an initialization function that will be automatically called by the runtime system to set up the form item.

Syntax

INITIALIZER = function
  1. function is an identifier defining the program function to be called.

Usage

The initialization function must exist in the program using the form file and must be defined with an ui.ComboBox parameter.

Important:
  • The initialization function name is case insensitive.
  • The module defining the initialization function must have been loaded before the function is invoked. The error -1338 is raised if the module is not yet loaded, or when the function name mismatches. To make sure that the module is loaded, define other functions in the module, that are invoked with a regular CALL instruction.