Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

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
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • Metadata field reference returns point ID instead of point fullname
Community Menu
  • Forums
    • By Topic
        • 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
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
          • Eldistribution & Fastighetsautomation
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ 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 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
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
        • Eldistribution & Fastighetsautomation
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ 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
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • 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: 
51132members
Join Now
245263posts
Join Now

Metadata field reference returns point ID instead of point fullname

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
Solved Go to Solution
Back to Geo SCADA Expert Forum
Solved
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2020-01-24 12:11 PM
0 Likes
7
1366
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 12:11 PM

Metadata field reference returns point ID instead of point fullname

I am working on getting a mimic animation to work the way I want it to. I am trying to use a Metadata field that is referencing another point to change the visibility of a text box, and when I call that Metadata field, the result returned is the ID of the point listed in the Metadata field instead of the FullName. Is there any way around getting the ID instead of the FullName?

 

Long version, I have a Valve Mimic that is heavily used. The point "Valve Position" is configured to the valve mimic on many screens, and my valve symbol has an animation for a box to represent the valve is in "Manual", which is another point. I'm trying to get the Valve Mimic to have a yellow box with an M inside it if the Manual point .CurrentStateDesc contains 'Man', without needing to go to every screen and configure another point to the valve mimic. 

 

Using a Metadata field configured as a String instead of Reference sort of works, but the STRING has to be manually entered in each instance of a template (which I'm trying to avoid the extra steps), and a Reference data field automatically updates to the correct point, but only returns the point ID.

Solved! Go to Solution.

Labels
  • SCADA
Tags (4)
  • Tags:
  • animation
  • expression
  • metadata
  • Mimic
Share
Reply

Accepted Solutions
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-01-27 01:55 PM
0 Likes
0
1344
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-27 01:55 PM

Re: Metadata field reference returns point ID instead of point fullname

Sorry, I probably should have read the full issue that you have.

 

My recommendation here is to have an entire mimic 'symbol' (which takes no parameters) within the template.

Then you drag and drop the template instance version of the symbol onto each mimic as applicable.

 

This template instance version would also be where the 'shared with other embedded mimics' linkage would be broken.

 

Whilst the idea of having a single standard mimic which is dragged and dropped on each screen, and then configured for the appropriate device instance sounds good (only 1 DB object shared for all devices), as you're learning, when you make enhancements to this that require another parameter then it's painful work to add these in.

 

Whilst having 1 DB object (mimic) per Template Instance (since it's defined in the Template) does add lots of extra DB objects over time, the impact of these is typically very small.


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

See Answer In Context

Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
7 Replies 7
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-01-27 12:06 AM
0 Likes
0
1351
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-27 12:06 AM

Re: Metadata field reference returns point ID instead of point fullname

There is a terribly bad way to do something like what you're after...

 

NOTE: AVOID USING THIS IN A PRODUCTION DATABASE... HERE LAY DRAGONS.

 

So there is a hidden little trick in the expression world, where you can perform an SQL Query as 'a tag'.

Then you can nest this as an indirect tag reference and get something similar.

 

So, assume that you have a Metadata field called 'ReferencedObject' which is of Reference type.

Then you could do the following

 

['?SELECT FullName FROM CDBObject WHERE ID = ' + Str(".Overview.ReferencedObject")]

To get the FullName for the object based upon the ID field for it.

Obviously if you want to start doing additional things, like animating a value based upon the value of the point pointed to by the reference field, then this is possible also.

Something like 

['?SELECT CurrentValueAsVariant FROM CDBPoint WHERE ID = ' + Str(".Overview.ReferencedObject")]

 

But you have to keep in mind that this is performing a query, plus all the database transactions for this, each time any of the referenced objects has an Update triggered for it.  So it will lead to bad database performance.


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..
Share
Reply
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2020-01-27 06:29 AM
0 Likes
5
1349
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-27 06:29 AM

Re: Metadata field reference returns point ID instead of point fullname

So it sounds like the better option is one of a few possibilities that require me to go through and edit every instance of a template.

 

  1. Add a Parameter to my valve symbol mimics, then go to every mimic where the symbol is used and configure the Auto - Manual CMD parameter.
  2. Use the string Metadata field, and edit the Metadata on every instance to have the correct Auto - Manual CMD FullName.
  3. Make a new or combine symbol mimic that contains both the valve position and the Auto - Manual CMD symbol inside my template. Then replace the original valve symbol everywhere with the one from the template. 
Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-01-27 01:55 PM
0 Likes
0
1345
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-27 01:55 PM

Re: Metadata field reference returns point ID instead of point fullname

Sorry, I probably should have read the full issue that you have.

 

My recommendation here is to have an entire mimic 'symbol' (which takes no parameters) within the template.

Then you drag and drop the template instance version of the symbol onto each mimic as applicable.

 

This template instance version would also be where the 'shared with other embedded mimics' linkage would be broken.

 

Whilst the idea of having a single standard mimic which is dragged and dropped on each screen, and then configured for the appropriate device instance sounds good (only 1 DB object shared for all devices), as you're learning, when you make enhancements to this that require another parameter then it's painful work to add these in.

 

Whilst having 1 DB object (mimic) per Template Instance (since it's defined in the Template) does add lots of extra DB objects over time, the impact of these is typically very small.


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

See Answer In Context

Share
Reply
geoffpatton
Lt. Commander geoffpatton
Lt. Commander
‎2020-01-27 07:08 PM
0 Likes
3
1341
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-27 07:08 PM

Re: Metadata field reference returns point ID instead of point fullname

Your option 2 may not be as bad as you think. Use the Bulk Edit tool to get the Metadata fields, exported to an excel file then you can update them. If the fullname of the object that contains the Metadata field is similar to the actual full name you need, you could copy those and then do a quick edit of them.

Share
Reply
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2020-01-28 05:40 AM
0 Likes
2
1333
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-28 05:40 AM

Re: Metadata field reference returns point ID instead of point fullname

I had come up with a similar plan for option 2 late yesterday afternoon. I am considering using a ST or FBD within the template to fill in my Metadata string field that can be executed manually or from another ST program that can query and located all of the logic programs of a particular name and execute them all.

 

Fortunately, my Valve Position and Auto - Manual CMD are in the same group template, so either my idea above our Geoff's idea would be fairly easy to complete.

Share
Reply
tfranklin
Lieutenant tfranklin
Lieutenant
‎2020-01-28 05:55 AM
0 Likes
1
1329
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-28 05:55 AM

Re: Metadata field reference returns point ID instead of point fullname

A new option has entered the thread!

 

Option 4 is something I've done in the past where instead of using a reference field, convert it to a link field.  Links will provide the reference and a full objectlink to the object.  You can use the object in an animation if you do something super clever and not recommended on a base object, but on the top layer of something it seems fine in my experience.

 

If you're familiar with object links, you know that it'll return something like SCX:///objecttype/Somegroup.somepointhere

 

In an animation, to get the object you want, you can use ELEMENT(1,'/',linkmetadatahere,1) to have it return the full path to the object. 

 

If you do what most frown upon and use an indirect animation, you could then do:

 

[ELEMENT(1,'/',linkmetadatahere,1) + '.thepropertyyouneed']

 

Use of indirect animations should be limited, as you may already know.  It's a touchy subject and you'll find a lot of content around them in these forums.

Share
Reply
tfranklin
Lieutenant tfranklin
Lieutenant
‎2020-01-28 05:57 AM
0 Likes
0
1327
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-28 05:57 AM

Re: Metadata field reference returns point ID instead of point fullname

I should probably have made the following point a littler more clear:

 

If you use this method, be sure to only do it on the top layer of something.  An indirect animation on the base level of an embedded mimic will cause significant performance issues if not implemented properly.

Share
Reply
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
188
BevanWeiss
Sisko BevanWeiss
52
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
16
JChamberlain
Lieutenant JChamberlain Lieutenant
16
AndrewScott
Lieutenant AndrewScott
15
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
©2020, Schneider Electric