Question:
How can I open a pop-up window from another pop-up window, closing the first window in the process?
Solution:
To close the first pop-up window, follow these procedures:
- Create an internal tag in the Viewer, and set its value as TRUE in the script of the button that will open the second screen (InternalTag.Value = True);
- Create a user event in the first screen called CloseScreen, and point it to internal tag’s Value property in the field Property or Expression. Check Always when property/expression is true, and click on OK;
- In this new event, create a script setting internal tag’s Value as FALSE, and call screen’s Close method.