<< Click to Display Table of Contents >> Write value when screen is opened and closed |
|
In this example, we'll show how to record a value when opening and closing a screen.
1. Create a tag named Tag:
2. Let's create 2 screens - General and Popup. On the general screen we will place a button that will open the Pop-up screen and on the pop-up screen we will place a button to close the pop-up screen:
3. Let's create 2 scripts of the Screen type. One is executed when the popup screen opens. The second one is executed when the popup window is closed:
Let's write scripts:
After you have recorded the script, be sure to launch it by clicking the button on the toolbar:
4. Let’s link these scripts to the pop-up screen:
5. Run simulation to check the settings:
You can download this project here.