Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Metadata field reference returns point ID instead of point fullname

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

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: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Metadata field reference returns point ID instead of point fullname
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the 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
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
308
AndrewScott
Admiral AndrewScott
97
BevanWeiss
Spock BevanWeiss
91
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
37
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
Hardin4019
Lieutenant Hardin4019
Lieutenant

Posted: ‎2020-01-24 12:11 PM . Last Modified: ‎2023-05-03 12:18 AM

0 Likes
7
4131
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-24 12:11 PM . Last Modified: ‎2023-05-03 12:18 AM

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.

Labels
  • Labels:
  • SCADA
  • Tags:
  • animation
  • expression
  • metadata
  • Mimic
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-01-27 01:55 PM

In response to Hardin4019
0 Likes
0
4109
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-27 01:55 PM

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

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 7
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-01-27 12:06 AM

0 Likes
0
4116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-27 12:06 AM

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

Link copied. Please paste this link to share this article on your social media post.

Hardin4019
Lieutenant Hardin4019
Lieutenant

Posted: ‎2020-01-27 06:29 AM

0 Likes
5
4114
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-27 06:29 AM

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

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-01-27 01:55 PM

In response to Hardin4019
0 Likes
0
4110
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-27 01:55 PM

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

Link copied. Please paste this link to share this article on your social media post.

geoffpatton
Captain geoffpatton
Captain

Posted: ‎2020-01-27 07:08 PM

In response to Hardin4019
0 Likes
3
4106
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-27 07:08 PM

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

Hardin4019
Lieutenant Hardin4019
Lieutenant

Posted: ‎2020-01-28 05:40 AM

In response to geoffpatton
0 Likes
2
4098
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-28 05:40 AM

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

tfranklin
Commander tfranklin
Commander

Posted: ‎2020-01-28 05:55 AM

In response to Hardin4019
0 Likes
1
4094
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-28 05:55 AM

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

tfranklin
Commander tfranklin
Commander

Posted: ‎2020-01-28 05:57 AM

In response to tfranklin
0 Likes
0
4092
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-01-28 05:57 AM

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.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of