Functions

A function consists of the file containing the source code and a JSON file with corresponding metadata. These two files do not necessarily have to be created in a separate folder. Depending on the number of functions, it may be useful to group them together in a folder.

A function can be created based on TypeScript or JavaScript. Both have the same technical options and are very similar in terms of programming. Due to the better Visual Studio programming support offered by Visual Studio, TypeScript should be selected for new functions.

To create a new function, right-click on the destination folder in the context menu and select Add new Item.

Functions 1:

A file for TypeScript/JavaScript is now created, along with a file containing the matching metadata.

The files are identical to functions that can be created within an HMI project. We therefore refer to the documentation for these functions here.

The metadata file must have a reference in Manifest.json within a framework package in order to be able to use it.