Sign In Help
Schneider Electric
HelpLogin / Register

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

Invitation Sent

Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
  • Home
  • Communities
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • Native Control Dialogue
Community Menu
  • Forums
    • By Topic
        • EcoStruxure Building
          • Field Devices Forum
        • EcoStruxure Power & Grid
          • Metering & Power Quality
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
          • Motorabgangstechnik & Antriebstechnik Forum
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Solutions for Motor Management
          • Paneelbouw & Energie Distributie
          • Eldistribution & Fastighetsautomation
          • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
        • Power Distribution NEMA
          • US Utility Forum
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • LayoutFAST User Group Forum
        • Wireless Information Network Solutions
          • Instrument Area Network
          • Remote Monitoring
          • Tank Level Monitoring
          • Remote Data Collection
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure Building
        • Field Devices Forum
      • EcoStruxure Power & Grid
        • Metering & Power Quality
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
        • Motorabgangstechnik & Antriebstechnik Forum
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Solutions for Motor Management
        • Paneelbouw & Energie Distributie
        • Eldistribution & Fastighetsautomation
        • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Power Distribution NEMA
        • US Utility Forum
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • LayoutFAST User Group Forum
      • Wireless Information Network Solutions
        • Instrument Area Network
        • Remote Monitoring
        • Tank Level Monitoring
        • Remote Data Collection
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • EcoStruxure Power & Grid
          • Backstage Access Resources
        • Industrial Automation
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
          • UK&I Residential and Commercial Electrical Distribution
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
          • Solutions for eMobility
          • Digital Hospital Solutions – UK&I
        • Knowledge Center
          • Industrial Automation How-to videos
          • Digital E-books
          • Success Stories Corner
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
        • Retail
          • Solutions for eMobility
        • Retail
          • Digital Hospital Solutions – UK&I
      • EcoStruxure Power & Grid
        • Backstage Access Resources
      • Industrial Automation
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
        • UK&I Residential and Commercial Electrical Distribution
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
        • Solutions for eMobility
        • Digital Hospital Solutions – UK&I
      • Knowledge Center
        • Industrial Automation How-to videos
        • Digital E-books
        • Success Stories Corner
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
      • Retail
        • Solutions for eMobility
      • Retail
        • Digital Hospital Solutions – UK&I
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation Knowledge Base
    • Industrial Automation How-to videos
    • SCADA & Telemetry Solutions Knowledge Base
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Technology Partners
  • Support
    • Ask Exchange
    • Leaderboard
    • Our Community Guidelines
    • Community User Guide
    • How-To & Best Practices
    • More
Join Now
How can we help?
cancel
Turn on suggestions
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: 
52826members
Join Now
248160posts
Join Now

Native Control Dialogue

Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Back to Geo SCADA Expert Forum
tfranklin
Lieutenant tfranklin
Lieutenant
‎2020-08-19 06:32 AM
0 Likes
6
866
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-19 06:32 AM

Native Control Dialogue

I don't believe I've missed anything, but I figure I'll ask anyway.  Is there currently a way to call the native control method from a script that launches the built-in control dialogue box?  In the past/present we use a scripted solution to work around it but was hoping there may be a more simple workaround to just use what's there.  An example workflow is we have an embedded mimic that has a script on it, the user clicks the embedded mimic and the script has a menu pop up with something like:

 

neat thing 1

neat thing 2

neat thing 3

-----------

control

------------

super neat thing

 

user clicks control and rather than calling our scripted sub, we'd just call something like obj.interface.control with no parameters and it would open the ViewX control dialogue. 

Labels
  • Scripting
Tags (1)
  • Tags:
  • english
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
6 Replies 6
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-08-19 07:30 PM
0 Likes
5
861
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-19 07:30 PM

Re: Native Control Dialogue

Gee that's a good one.

I've obviously forgotten all the traps of that, I was thinking it would be as easy as just calling the method without providing arguments.  But that complains about not having the right number of arguments.

 

I'm therefore as stumped as you in regards to this.

 

If no solution comes up (from perhaps @AdamWoodland, @sbeadle or @JChamberlain ), and you raise it as a feature request, please let me know the number and I'll submit a vote for it also 🙂


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..
Tags (1)
  • Tags:
  • english
Share
Reply
geoffpatton
Lt. Commander geoffpatton
Lt. Commander
‎2020-08-20 12:28 PM
1 Like
4
839
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-20 12:28 PM

Re: Native Control Dialogue

Ok that made me curious if I could get it to work.

This is what I just came up with.

On the control button I set the PickType to 5

 

Then did this vb script.

Function Mimic_Load
Mimic.Layers(0).Item("Btn_2").PickParam = "SCX:////CPointDigitalManual/.Daily Test?CurrentState"
End Function

 

So you just have to construct the string for the Pick Parameter.

I got the SCX... string by setting up a button's Pick Action to do a Method control and then going back and changing from Method to System Command. after selecting system command I press the next button and then copied the string that was shown for Command.

 

Also of note, I am sure you'll be tsting this outside of your templates first, so you'' be able to switch the mimic into edit mode after the function is run. then you can check and see if it set the pick action correctly, but it does not show up in the PickParam animation, you have to look in the standard Pick action configuration.

Tags (1)
  • Tags:
  • english
Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-08-20 04:26 PM
1 Like
1
835
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-20 04:26 PM

Re: Native Control Dialogue

@geoffpatton 

Good workaround 🙂

But it wouldn't work if it was used on a shared embedded mimic right? since Mimic_Load would only get called on first entry into the cache, and hence the PickParam would be identical for every instance..

 

There must be a way to do it with pure script though, perhaps if there was a User Method configured on the point which just called the Control / CurrentValue method (as appropriate) and then you could call that User Method via the object interface model...

That might get around the VBA complaint I got on the incorrect arguments


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..
Tags (1)
  • Tags:
  • english
Share
Reply
tfranklin
Lieutenant tfranklin
Lieutenant
‎2020-08-20 04:31 PM
0 Likes
1
832
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-20 04:31 PM

Re: Native Control Dialogue

Looks like you went down a similar path that I did!  Ultimately this still won't do what we're trying to do though.  The goal is to have a pick action load menu list, then from the list call the native dialogue.  if from the list we change the pick of the object altogether (which often times is an embedded mimic) we'd have to have a way of changing it back to the normal list behavior after the user enters a value, which just over complicates things a bit. 

 

Your solution works in the event that the pick param is configured to call the method, but I'm still not sure a way to call this from a script out of a menu list. 

 

Workflow in my head would go...

 

1) click the object to reveal a menu list that is built dynamically though script

2) click "control" from the scripted pick menu.  this would call a internal method that launches the dialogue

 

There has got to be a way! lol

 

Tags (1)
  • Tags:
  • english
Share
Reply
geoffpatton
Lt. Commander geoffpatton
Lt. Commander
‎2020-08-20 04:38 PM
0 Likes
0
831
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-20 04:38 PM

YRe: Native Control Dialogue

Yeah I did not think about it being on embedded mimics.

Tags (1)
  • Tags:
  • english
Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-08-21 10:18 PM
0 Likes
0
815
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-08-21 10:18 PM

Re: Native Control Dialogue

I just tried the way I thought of with the User Method, and the User Method itself doesn't allow to call the Control.Control (or HandControl on an Internal Point) without providing an argument.

Which makes me think that it's just not possible 😞 (without doing some really wacky stuff)

 

Perhaps if you created a ViewX Interface (the unsupported COM way) then you could use that to call the Control, but then I don't think it would be nice at all.... typically it doesn't have a visible instance, so I'm not sure how you'd go about getting a visible instance, and then it would be separate from the existing ViewX instance.. and there might be some weird stuff in that...

 

I'm not even sure there is a clean way for Schneider / AVEVA to implement what we'd like in the framework.  It couldn't be a new method call on the object itself, since what would that mean if there wasn't a ViewX client to display the dialog... so it would need to be like a script method, but then it only applies on certain objects, so that seems like it wouldn't fit the script model either.

 

I suddenly thought that maybe passing 'nothing' or 'null' into the action might have done the job... but it appears to consider that equivalent to 0 and sets this value (rather than prompting), at least when I tested it on the Override of an internal analog point.

 

I think it needs another scripting function, perhaps like App.InvokeMethod( string PickParam from Method animation )

 

I've tried taking the 'link' from the PickParam of the method and passing it into all the various Navigate / Open options.. none seemed to do the job. For my internal point, the method PickParam looked like this.

SCX:////CPointAlgManual/!test.New Analog Point?CurrentValue

 

My thought was that in the App.InvokeMethod syntax I propose it would then be:

App.InvokeMethod( "SCX"////CPointAlgManual/!test.New AnalogPoint?CurrentValue")

 

It does seem like it might be quite a bit of development effort for this, or similar, from Schneider/AVEVA... so I'm not sure it would get on a roadmap.  But worth feature requesting something all the same 🙂

 

EDIT: My API was bad.. keeping in line with the animation property would be better.


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..
Tags (1)
  • Tags:
  • english
Share
Reply
Related Products
Schneider Electric
EcoStruxure™ Geo SCADA Expert
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
188
BevanWeiss
Sisko BevanWeiss
56
AndrewScott
Lt. Commander AndrewScott
17
AdamWoodland
Commander AdamWoodland Commander
17
JChamberlain
Lt. Commander JChamberlain Lt. Commander
16
geoffpatton
Lt. Commander geoffpatton
10
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2021, Schneider Electric