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.
In versions older than Promotic 8.2 only the VBScript can be used.