EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-08-22 05:57 PM . Last Modified: 2023-05-03 12:11 AM
I'd like a text string in an embedded object to show the group name it’s currently in.
If I use <".Name"> in the Text expression of the original object I get the name of the Library Group it came from.
If I create a Parameter for the Text expression and set the Parameter default value to <".Name"> it shows <.Name> in the string.
If I put <".Name"> in the Parameter expression after it’s been embedded it then shows the Group name it is currently in. Thought it would be nice not to have to remember to type that in each time.
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: 2020-08-25 06:10 AM
Possibly an issue with using Text parameter instead of Value.
I am using the Value parameter and have a working embedded Text block in a templated mimic that has Value = 'Some fixed text ' + ".Name"
Also, maybe instead of ".Name" you want ".ParentGroupName" to get the name of the group the object is in.
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: 2020-08-25 10:25 AM
You have that as the "Default Value" in the original objects Parameter for the text?
Using the Text or Value Animations Expression don't seem to matter. The Parameter "Default Value" comes through as the text string <".Name"> not the group name. If I just put the same thing <".Name"> in the same Parameter after it's been embedded then it works.
So every time you embedded it you have to go in and put <".Name"> in the same Parameter even though the Parameter "Default Value" is the same thing it just don't process it first and passes the sting.
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: 2020-08-27 10:20 AM
No. I guess I misused "Parameter" when I should have used "Property". The text box in the mimic I use has no templated "Parameters", it just uses a fixed Expression to set the value of the text box value to ".ParentGroupName" which grabs the Group name of the group that the mimic is in.
To the best of my knowledge, anytime you use a mimic with additional "Parameters" assigned, you have to configure those Parameters when you use the mimic as an embedded mimic. I also did a quick test, I couldn't get a default value to use .Name or .ParentGroupName.
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: 2020-08-27 12:58 PM
Ok, is there may be a way to have some script update the parameter when the object is embedded? I’d also like to have a template update it’s tags Outstation path when creating an instance.
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.