EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Posted: 2021-11-18 10:40 AM . Last Modified: 2023-05-03 12:00 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-11-18 10:40 AM . Last Modified: 2023-05-03 12:00 AM
Hello.
please tell me how to activate the button action from the script that I set in pick action.
thanks
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: 2021-11-18 07:21 PM
I don't believe 'action items' like that are available for buttons etc from the scripting environment.
If you have a script that is called, then that script would generally be called FROM a button click, and would then perform actions on DB objects as required (i.e. issuing a control to a DNP3 point or similar).
If you want a button to do the work of several other buttons (or something extra from another button), then you'd likely be better to convert the action on the other button to a script method, and then your new button can do the extra thing and then call the original script method.
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: 2021-11-19 12:49 AM
what i really want to do.
i want to open web page in new tab of viewx.
i can do it by makie a pick action of button (in all other ways web page opens in browser)
but i want to execute sequence like that
Set obj = Server.LookUpObject (8311)
obj.Interface.Export
Sleep(20)
System("someexecutable.exe 7021")
Sleep(50)
Mimic.Navigate "some web page.html"
thats why i decide to make two buttons
first with pick action with web page "some web page.html"
and another with script
Set obj = Server.LookUpObject (8311)
obj.Interface.Export
Sleep(20)
System("someexecutable.exe 7021")
Sleep(50)
Some script to activate pick action of first button
if i can do that web page opens in new tab of viewx
if u know how to do that in another way please teach me )))
sorry for my english ))
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: 2021-11-21 02:00 PM
I've tried to find any methods like this on the Mimic Button, but have come up empty.
So I don't believe there is any way to call the click method like that.
The Mimic.Navigate does want a fully qualified URI, so you should include the http:// / https:// prefix, but this will not address the issue here, it will still launch it in a separate application (the system browser).
Given the additional items that you are trying to call however, I'd suggest that you're probably going about this in a way that is prone to breakages.
i.e. what if the client you're running on doesn't have access to the executable?
And if it's a remote client, it's almost certainly not going to have access to the result of the obj.Interface.Export
Is there a reason that you don't wrap this up in a web interface?
You could write a little ASP.NET web application that would do the object lookup, retrieve the data required for processing, do the processing and then return the result to the client (without having to do arbitrary Sleep(x) type of hacks).
Then you could just use a straight button pick action to have it displayed within the ViewX environment (or hosted elsewhere if it better suits the operational requirement).
If you're determined to proceed in your way, then unfortunately you'll have to raise it with Schneider Tech Support to see if there is such a mechanism. I doubt there is however, which then leaves you with raising a feature request for it. But I suspect this wouldn't get much traction either, since there are ways to achieve what you want without this.. (and it would be a massive change to the ViewX platform that they would need to provide ongoing support for... and this seems like a headache to support)
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: 2021-11-22 01:31 AM
thanks/
seems to be the only way is to make an asp application
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.