Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Invite a Colleague
Found this content useful? Share it with a Colleague!
Link copied. Please paste this link to share this article on your social media post.
Is there a way to set the State property of all ValueItems in one shot?
We would like doing it in one shot instead of looping through all value items. The ValueItems belong to an EWS server.
If we are talking about a single batch call to the SQL database, the best way I can see to do this will be like in the pseudo code below.
myEwsServerDataAdapter.AutoCommit = false;
foreach (var valueItem in myEwsServerDataAdapter.ValueItems)
valueItem.State = TheStateYouWannaSet }
myEwsServerDataAdapter.CommitChanges();myEwsServerDataAdapter.AutoCommit = true;
See Answer In Context
Events & webinars
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.
Register today for FREE
Already have an account? Login