EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-06 03:02 PM . Last Modified: 2023-05-03 12:25 AM
>>Message imported from previous forum - Category:ClearSCADA Software<<
User: du5tin, originally posted: 2019-04-18 18:59:15 Id:413
Hi,
I am wanting to navigate a user's ViewX view entirely from inside a faceplate/pop-up. Use case is the user pops open a meter faceplate and they can click to navigate to a full screen configuration page from inside the pop-up (needs to navigate the view from the screen that contained the faceplate link).
I've tried a few things, including script using the TopMimic.Navigate. But I'm not having much luck. Any tips?
-D
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-06 03:03 PM
>>Responses imported from previous forum
Reply From User: geoffpatton, posted: 2019-04-19 14:31:33
What happens if on the popup you do Mimic.Close and then after that TopMimic.Navigate, or Mimic.Navigate?
Reply From User: du5tin, posted: 2019-04-23 14:50:36
Okay, so I tried your suggestion. Here is my code:
~~~~
Sub OpenFromFaceplate(mimicId)
Set objConfigMimic = Server.LookUpObject(mimicId)
If objConfigMimic Is Nothing Then
Exit Sub
End If
Mimic.Close
Mimic.Navigate(objConfigMimic.Interface.ObjectLink)
End Sub
~~~~
But when I run the script from the faceplate it does not work as you would expect. Because we call the script from the faceplate the script stops running as soon as the mimic is closed so I cannot get the navigate command to run.
I thought maybe TopMimic might get it done but it does not seem to refer to the mimic that opened the faceplate pop-up. It refers to the pop-up mimic itself.
Reply From User: du5tin, posted: 2019-04-23 15:05:33
Okay, I did some more reading (RTFM Dustin!). If I use App.OpenWindow and open the config screen in a new window that seems to do the trick. I'm wondering if/when it will break on a multi-head setup and how it will work on WebX, but for now I think this will accomplish what we need.
~~~~
Sub OpenMimicFromFaceplate(mimicId)
Dim objConfigMimic
Set objConfigMimic = Server.LookUpObject(mimicId)
If objConfigMimic Is Nothing Then
Exit Sub
End If
App.OpenWindow(objConfigMimic.Interface.ObjectLink)
End Sub
~~~~
Reply From User: geoffpatton, posted: 2019-04-23 17:35:52
Glad you found a solution.
I only had a small hope that my suggestion might work. I know sometimes scripts seem to keep running after I have left a page. Now that I think about it a little more, I think that maybe only when I navigate away from a page and don't close the window.
Reply From User: hardin4019, posted: 2019-05-20 20:57:00
WebX will only ever show you one mimic at a time. If you go from a main mimic with a navigation bar built in (not IE or WebX bar) and click on any hyperlink to a pop up window, the pop up window is all you will see, and you will not have your Navigation bar that was embedded in the previous mimic. You will have to use the forward and backward buttons of your browser.
I've been using ClearSCADA 2017 R2 on multi monitor work stations. One of the nice features is that when you open an inset, the chain link icon appears on the both the pop up and the screen that opened it. Navigating away from the base screen that opened the inset, or closing any parent screen that opened an inset will cause all of the child linked screens to close. Not 100% sure if it works that way with the App.OpenWindow command, but I think that it has the same behavior.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-06 03:03 PM
>>Responses imported from previous forum
Reply From User: geoffpatton, posted: 2019-04-19 14:31:33
What happens if on the popup you do Mimic.Close and then after that TopMimic.Navigate, or Mimic.Navigate?
Reply From User: du5tin, posted: 2019-04-23 14:50:36
Okay, so I tried your suggestion. Here is my code:
~~~~
Sub OpenFromFaceplate(mimicId)
Set objConfigMimic = Server.LookUpObject(mimicId)
If objConfigMimic Is Nothing Then
Exit Sub
End If
Mimic.Close
Mimic.Navigate(objConfigMimic.Interface.ObjectLink)
End Sub
~~~~
But when I run the script from the faceplate it does not work as you would expect. Because we call the script from the faceplate the script stops running as soon as the mimic is closed so I cannot get the navigate command to run.
I thought maybe TopMimic might get it done but it does not seem to refer to the mimic that opened the faceplate pop-up. It refers to the pop-up mimic itself.
Reply From User: du5tin, posted: 2019-04-23 15:05:33
Okay, I did some more reading (RTFM Dustin!). If I use App.OpenWindow and open the config screen in a new window that seems to do the trick. I'm wondering if/when it will break on a multi-head setup and how it will work on WebX, but for now I think this will accomplish what we need.
~~~~
Sub OpenMimicFromFaceplate(mimicId)
Dim objConfigMimic
Set objConfigMimic = Server.LookUpObject(mimicId)
If objConfigMimic Is Nothing Then
Exit Sub
End If
App.OpenWindow(objConfigMimic.Interface.ObjectLink)
End Sub
~~~~
Reply From User: geoffpatton, posted: 2019-04-23 17:35:52
Glad you found a solution.
I only had a small hope that my suggestion might work. I know sometimes scripts seem to keep running after I have left a page. Now that I think about it a little more, I think that maybe only when I navigate away from a page and don't close the window.
Reply From User: hardin4019, posted: 2019-05-20 20:57:00
WebX will only ever show you one mimic at a time. If you go from a main mimic with a navigation bar built in (not IE or WebX bar) and click on any hyperlink to a pop up window, the pop up window is all you will see, and you will not have your Navigation bar that was embedded in the previous mimic. You will have to use the forward and backward buttons of your browser.
I've been using ClearSCADA 2017 R2 on multi monitor work stations. One of the nice features is that when you open an inset, the chain link icon appears on the both the pop up and the screen that opened it. Navigating away from the base screen that opened the inset, or closing any parent screen that opened an inset will cause all of the child linked screens to close. Not 100% sure if it works that way with the App.OpenWindow command, but I think that it has the same behavior.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.