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!
SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
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
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.
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