Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Search in
Link copied. Please paste this link to share this article on your social media post.
Hi,
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.
Thank you.
Mike
Link copied. Please paste this link to share this article on your social media post.
Hi Michael,
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;
Best Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Michael,
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;
Best Regards,
-Jeff
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.