frontCallAPIVersion

Returns the API version of web component front-end calls.

Syntax

ui.Interface.frontCall("webcomponent", "frontCallAPIVersion",
  [],[result])
  1. result - Holds the API version for web component front calls.

Usage

This front call can be used to check the API version for the web component front calls.

If the API version changes, you must adapt the code to the expected front call API implemented for the web components.

The value returned by this front call is a typicaly version number such as 1.0, 1.1, etc.

Example

FUNCTION wc_api_version()
    DEFINE vers STRING
    TRY
       CALL ui.Interface.frontCall("webcomponent","frontCallAPIVersion",[],[vers])
       -- we can safely call "webcomponent" "call" in the code
       RETURN vers
    CATCH
       -- we can't call the "webcomponent" functions...
       RETURN 0
    END TRY
END FUNCTION