Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84248members
353348posts

[Imported] Navigate from Faceplate Popup Open as inset mimic

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
sbeadle
Janeway Janeway
Janeway
0 Likes
1
725

[Imported] Navigate from Faceplate Popup Open as inset mimic

>>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


Accepted Solutions
sbeadle
Janeway Janeway
Janeway
0 Likes
0
724

Re: [Imported] Navigate from Faceplate Popup Open as inset mimic

>>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.

See Answer In Context

1 Reply 1
sbeadle
Janeway Janeway
Janeway
0 Likes
0
725

Re: [Imported] Navigate from Faceplate Popup Open as inset mimic

>>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.