Built-in front calls / Webcomponent front calls |
Returns the API version of web component front-end calls.
ui.Interface.frontCall("webcomponent", "frontCallAPIVersion", [],[result])
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.
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