5.5 Data Functions

Functions that are declared as data functions in the dialog description must be declared in COBOL as follows:

entry "datafunction1" using 
  DM-Common-Data
  DM-Datafunc-Data.

The function represents a Data Model (Model component) that provides the presentation objects (View component) with data values or stores and manages them.

The parameters of this function are predefined by the ISA Dialog Manager and cannot be changed.

This function is called when a synchronization between View and Model components is required. This may either happen automatically, according to the control options in the .dataoptions[]attribute of the involved components. The call can also be triggered by explicit invocation of the :collect(), :propagate(), :apply() and :represent() methods. For each Model attribute there is a separate call.

Remark

In contrast to the C Interface of the ISA Dialog Manager, the COBOL data function has two parameters.

Availability

COBOL Interface for Micro Focus Visual COBOL only.

See also

Chapter “Data Function Structure DM-Datafunc-Data”