Creation of the Dynamic Part of the application
Now you know how to define specific data variables (in the editor of Pma objects
) and how to visualize these variables by connecting them with corresponding Pmg
objects by data bindings (in the editor of Pmg objects
In the following chapter you will learn how to use scripts in order to add dynamic into your application - vitalize it.
In reality it is often needed that the application does some specific action repeatedly every second, or that some defined action is triggered after pressing a key or clicking on a graphic button. Therefore we need to define an algorithm (script) that actually does something when something happens.
In some very simple cases it is possible to define the algorithm by clicking some configuration buttons
. For example, some communication with outer sensors can be set in order to refresh the data.
. And because the PROMOTIC system is an object oriented system these languages are very natural for it.
Since version Pm9.0.0
language is recommended because it is much more modern.
Since version Pm8.2.0
language in the events of Pmg object
s. In the events of Pma object
s the VBScript
language had to be used.
In versions older than PROMOTIC 8.2
only the VBScript
can be used.