Ask our Experts
Didn't find what you are looking for? Ask our experts!
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-05 01:55 PM . Last Modified: 2023-05-03 12:33 AM
>>Message imported from previous forum - Category:Scripts and Tips<<
User: mchartrand, originally posted: 2018-10-25 18:56:39 Id:272
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
_______
**_Chadam:
Hi Guys,
Do embedded lists support relative references? I will like to search for Points in the Current Folder with the text "Run" in the Fullname.
My WHERE syntax doesn't appear correct._**
_SELECT
"FullName" AS "~FullName", "Id", "Foreground", "Blink", "Background", "CurrentStateDesc", "CurrentQualityDesc"
FROM
CDBPOINT
WHERE
"FullName" LIKE '..Fullname.%Run%'
ORDER BY
"~FullName" ASC_
___________________________
aneeskp:
Hi Chadam,
Relative references can done through animations of List.
Double click the list and click animations. Now in the sql property enter the following:
'SELECT "FullName" AS "~FullName", "Id", "Foreground", "Blink", "Background", "CurrentStateDesc", "CurrentQualityDesc" FROM CDBPOINT WHERE Fullname Like ''' + ".FullName" +'.%Run%'' ORDER BY "~FullName" ASC'
You can view the populated query with actual value of the relatively refered fullname in the Query tab.
Not sure if there's any other workaround, ideally this should work
Cheers ! 🙂
________________________
dmercer:
A little trick that I find useful when doing this, is to break up the lines in the animation expression by putting the + at the end of each line. It makes it much more readable when you have to make long queries in an animation.
aneeskp's query could become:
_'SELECT "FullName" AS "~FullName", "Id", "Foreground", "Blink", "Background", "CurrentStateDesc", "CurrentQualityDesc" ' +
'FROM CDBPOINT ' +
'WHERE Fullname Like ''' + ".FullName" +'.%Run%'' ' +
'ORDER BY "~FullName" ASC'_
___________________________
**_Chadam:
You guys are legends. Works like a charm. Thanks for the quick responses._**
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.