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
84650members
353993posts

pressing a button on mimic from script

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.

andry111
Ensign
Ensign
0 Likes
4
356

pressing a button on mimic from script

Hello.

please tell me how to activate the button action from the script that I set in pick action.

 

thanks

4 Replies 4
BevanWeiss
Spock
Spock
0 Likes
3
345

Re: pressing a button on mimic from script

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.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
andry111
Ensign
Ensign
0 Likes
2
335

Re: pressing a button on mimic from script

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

 

 

 

 

 

 

 

BevanWeiss
Spock
Spock
0 Likes
1
306

Re: pressing a button on mimic from script

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)


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
andry111
Ensign
Ensign
0 Likes
0
296

Re: pressing a button on mimic from script

thanks/

seems to be the only way is to make an asp application