FrontCallRequest

The FrontCallRequest type defines a record for retrieving front call request details.

Syntax

PUBLIC TYPE FrontCallRequest RECORD
    frontCall RECORD
        moduleName STRING,
        functionName STRING,
        paramCount INTEGER,
        returnCount INTEGER,
        parameters DYNAMIC ARRAY OF RECORD
            dataType STRING,
            isNull BOOLEAN,
            value STRING
        END RECORD
    END RECORD,
    errorMessage STRING
END RECORD
  1. moduleName is the name of the front call module
  2. functionName is the name of the front call function
  3. paramCount holds the number of function parameters
  4. returnCount holds the number of values returned by the function
  5. The parameters array holds the list of the function parameters and their details in the record:
    1. dataType is the data type of the parameter
    2. isNull if set, a null value is allowed
    3. value holds the parameter value
  6. errorMessage contains details of an error message

Usage

It provides an API to inspect a front call request; typically the module name, the function name, parameters, etc. A variable of the type FrontCallRequest must be defined to call these methods, for example:

DEFINE fcRequest FrontCallRequest
DEFINE moduleName STRING
...
LET moduleName = fcRequest.getModuleName()