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: 2024-06-24 09:50 AM
I am writing a piece of code to turn off history for points in a SQL query and am having trouble finding the correct tag.
In Bulk Edit the tag is called Historic.:AggregateEnabled
When I attempt to toggle this with my code I get an error on the semicolon. Is there another point I can use to do this?
Here is my code.
public sub DisableHistory
If MsgBox ("You are about to disable history from all items in this list, are you sure?", vbYesNo OR vbcritical, "Mass Update") = vbYes Then
Setbusy(True)
qry = mimic.layers("MAIN").item("Lst_3").Sql
Set rs = server.query(qry)
recs = rs.rows
size = rs.rowcount - 1
For i = 0 To size
Set Node = Server.LookUpObject(recs(i,0))
Node.Interface.Historic.:AggregateEnabled = False
Next
Setbusy(False)
msgbox "Changes Are Now Complete"
qry2 = Mimic.Layers("MAIN").Item("Lst_3").sql
Mimic.Layers("MAIN").Item("Lst_3").sql = qry2
Else
Msgbox "No instances will be changed."
End If
End Sub
Thank you in advance for your help.
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: 2024-06-25 06:03 AM
From VBScript use the following to disable the Historic aggregate:
Node.Interface.Historic = False
This is described in the documentation for the ServerObject.Interface property (see example 2).
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: 2024-06-25 06:03 AM
From VBScript use the following to disable the Historic aggregate:
Node.Interface.Historic = False
This is described in the documentation for the ServerObject.Interface property (see example 2).
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: 2024-06-25 06:34 AM
That worked thank you Andrew! Also I appreciate the reference.
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.