Concatenate the fields from a selected row of a data table into a string
EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
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 InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-09-2108:47 PM
I'm unsure what your code fragment is meant to represent.
If you're going to write the string to a Text entry on the mimic using the animation property
i.e. Mimic.Layers("Layer").Item("TextItem").Text = "texthere"
Then you most as well do the concatenation within the script.
If you were going to have it within an embedded query list, then you'd have no choice but to have it within the SQL query
ala
SELECT textCol1 || textCol2 || textCol3 as "BigTextCol"
FROM MyTable
It's swings and roundabouts really.
The SQL QP is very efficient at string concatenation, but it's easier to have dynamic concatenation within the script environment for if you add a column etc in the future. You could even have your query as SELECT * FROM MyTable and then have the script enumerate through the columns for those which have 'textCol' in their name, and then concatenating them all at runtime.
This dynamic concatenation is not possible with SQL, you would have to supply the SQL exactly the columns to concatenate ahead of time.
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..