Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts. Register and secure your Critical IT infrastructure
Using Script to Perform Functions on Mimic Load
Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
📖HomeBack It is possible to add script to a mimic that resides outside the bounds of any named function. This code will be run on load of the mimic, irrespective of whether the mimic is in design or run mode.
In some cases, this "feature" has been used as a mechanism to redirect from one page to another by adding the line Mimic.Navigate "xyz".
If you create the redirect this way, then the mimic on which the redirect is configured is now effectively no longer editable. You can never open the mimic again to make any changes. As soon as you try to open it, it is immediately redirected to the other page.
The best way to approach this is to use the built-in Mimic_Load functions. This function is run when the mimic loads, but only if it is in run mode. If you right click on the mimic and open it in design mode, then you will be able to open it and modify the script as required.
It is recommended that global code (code outside the named functions) is only used for things such as variable initialisation etc, and NEVER for mimic redirects using hyperlinks. An example function is shown below...