How can I inform the Remote Viewer that the application has been altered in the Server? Whenever an application is edited and updated in E3Server, the Viewer is only updated when it is closed, and not by simply switching screens.
Solution:
This problem can happen when a library is edited, because it works with indexes, unlike the other screen objects, so the Viewer must be closed to be updated. In case it is not closed, it will use screens in cache, and the changes will not appear.
To inform about any changes via data server, follow these procedures:
- Create an internal tag.
- In the Viewer, create a user event that tests this tag’s Value property.
- In this event’s script, add a MsgBox command with the desired message to warn the user on the changes in the library.
Thus, every time you edit the application, you must edite the internal tag’s Value property manually before running the application, which will force the warning message to be displayed in the remote E3Viewer.