Functions
This section covers how functions can be created and customized on the platform to cater for operations in an application.
Last updated
This section covers how functions can be created and customized on the platform to cater for operations in an application.
Last updated
Functions are used on the platform to define dynamic actions in your application. They are scripts with input parameters which in turn can be called in scripts. The Function Designer provides an interface for creating and managing functions.
On the start page of the Designer, all available functions are listed. In addition, new functions can be created. In the context menu of an instance these actions can be performed:
Clone: an exact copy of this instance is created and added to the list
Used By: Listed all class, function, layout, selection, workflow, template who use this instance
Delete: delete this instance
The interface of the function settings are divided into three sections. In General the function name and description of the function are entered. In addition, a unique key must be assigned. With this key the function can be called at another place. In the Function section, the underlying script can be created or opened. How scripts are built you can see in Scripting. The return type of the function is also set at this point. Finally, under Parameter the input parameters can be configured. How to add and configure parameters is described in the next chapter.
The Key property is compulsory when creating a function.
It is possible to add parameters to a function. These are queried in the interface when the function is executed.
The Key is the parameter name with which you can access it in the script context. The Type property defines the layout control with which the parameter query will be displayed later during execution. If Required is enabled, an input is forced. The Actions offered deleting and moving (changing the order) of a parameter.
The Key property is compulsory when creating a parameter.
After the function is created and a script is built, this function is available to the app. In each script in the different contexts, this function can now be called. These includes Workflow Designer, Template Designer and of course in another function. To execute the function in the script, the action ExecuteFunction is offered. When this action is added in the designer, you can choose from a list of available functions.