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!

Using an SQL Query on an Embedded List in a Group Template

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

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
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Using an SQL Query on an Embedded List in a Group Template
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 Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • WebX 19
  • Request Form 18
  • Lists, Events & Alarms 16
  • ViewX 15
  • Application Programming 12
  • Setup 12
  • Telemetry 8
  • Events & Alarms 7
  • Lists 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • SCADA 5
  • Geo SCADA Expert 5
  • Drivers and Communications 4
  • Security 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Trends and Historian 2
  • Virtual ViewX 2
  • Geo Scada 1
  • ClearSCADA 1
  • Templates and Instances 1
  • Releases 1
  • Maps and GIS 1
  • Mobile 1
  • Architectures 1
  • Tools & Resources 1
  • Privacy Policy 1
  • OPC-UA 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • OPC UA - Driver and Server
  • Requirements for Generating a Valid OPC UA Server Certificate
  • Load Events Using LoadRecord and LoadRecords
  • Geo SCADA Embedded Component Licenses
  • Geo SCADA 2023 Known Issues
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
Anonymous user
Not applicable
‎2021-06-09 12:41 PM
0 Likes
0
1129
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content

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

‎2021-06-09 12:41 PM

Using an SQL Query on an Embedded List in a Group Template

Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 09:41 PM

📖 Home  Back  
You can easily configure an embedded list on a Mimic in a Group Template so that the Group Instance versions of the Mimic all show data that is relevant to each particular Group Instance. All you need to do is change the syntax of the SQL query so that it includes the FullName value of the Group Instance rather than the FullName of a specific Group.

The correct syntax for this is:
'SELECT * from CDBPoint where FullName LIKE '''+".FullName" + '.%'''

This instructs the embedded list to display all entries from the CDBPoint table that have a FullName value that contains the FullName value of the group that stores the points. The * sets the embedded list to show all columns, but you can set specific columns as required.

Example


A Group Template contains a Mimic and several points. On the Mimic, an embedded list displays the name and value for each point that is stored in the Group Template. The SQL query for the embedded list is:
'SELECT Id, FullNAME, CurrentValueFormatted from CDBPoint where FullName LIKE '''+".FullName" + '.%'''

This ensures that the embedded list displays the FullName and CurrentValueFormatted columns from the CDBPoint table (the database table that contains all point data). Note that the ID column has also been included - the ID column provides the pick action menu features for each point, so that you can use the list to access actions and controls for the points shown in the embedded list.

The points that are to be shown in the list are defined by the
where FullName LIKE '''+"FullName"+'.%'''

part of the query. This ensures that the list includes all those points that have FullName values that contain the FullName value of the group that stores the points. The .% means that all points that contain the FullName value of the group in their FullName will be returned.

As the SQL query references the FullName of the group that contains the points, rather than the name of a specific group, it means that Group Instance versions of the embedded lists will show data for the points that are stored in the Group Instances.

So, let's say a Group Instance is named 'Main Line' and contains a Mimic with an embedded list and three points ('Valve 1', 'Valve 2' and 'Valve 3'). The SQL query for the embedded list is inherited from the Group Template and is:
'SELECT Id, FullName, CurrentValueFormatted from CDBPoint where FullName LIKE '''+".FullName" + '.%'''

This means that the embedded list will show the FullName and CurrentValueFormatted columns from the CDBPoint table. To determine which point data is to be shown in the embedded list, ClearSCADA searches for those points that have a FullName value that contains the FullName value of the Group Instance - the embedded list will show those points that have 'Main Line' in their FullName value. As the 'Valve1', 'Valve 2' and 'Valve 3' points are all stored in the 'Main Line' Group Instance, they all contain 'Main Line' in their FullName values. The .% part of the SQL query instructs the embedded list to show all points (rather than points that have the FullName of the Group Instance in their FullName values and have a specific name).

The embedded list shows the name and current value of the points that are stored in the Group Instance.

Each Group Instance that is associated with the same Group Template will behave in the same way - its embedded list will show the data for points that are stored in that Group Instance.

Go: Home Back
Labels:
  • database

  • Templates and Instances

Author

Biography

Anonymous user

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

  • Back to Blog
  • Newer Article
  • Older Article
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