Thanks for the immediate response!
I tried everything "One", "1", "ON" (this is the way the text is rendered), without success.
It was the true/false, as you stated!
Thanks Matt!
Best,
Rodrigo
Setting Several Data Points at once
Thanks for the immediate response!
I tried everything "One", "1", "ON" (this is the way the text is rendered), without success.
It was the true/false, as you stated!
Thanks Matt!
Best,
Rodrigo
Anytime :)
Hi,
I have managed to set a couple of binary data points by using <ma-get-point-value>, as follows:
<div>
<ma-get-point-value point-xid="DP03_CS01_UMABAS013" point="myPoint1"></ma-get-point-value>
<ma-get-point-value point-xid="DP03_CS01_UMABAS012" point="myPoint2"></ma-get-point-value>
<ma-get-point-value point-xid="DP03_CS01_UMABAS011" point="myPoint3"></ma-get-point-value>
<ma-get-point-value point-xid="DP03_CS01_FCBAS009" point="myPoint4"></ma-get-point-value>
<ma-button ng-click="myPoint1.setValue(false);myPoint2.setValue(false);myPoint3.setValue(false);myPoint4.setValue(false)" raised="true" palette="primary" label="ON" icon="power_settings_new" hue="hue-1"></ma-button>
<ma-button ng-click="myPoint1.setValue(true);myPoint2.setValue(true);myPoint3.setValue(true);myPoint4.setValue(true)" raised="true" palette="warn" label="OFF" icon="power_settings_new" hue="hue-3"></ma-button>
Now, how to do the same with 100 points?
Based on what @Matt said, I understand I should create a watch list with this points and then use ma-watch-list-get, instead of 100 lines of ma-get-point-value.
The problem, How should the watch list be created? there are several options for this (can it be a static watch list?), Also, how to use ma-watch-list-get? I have tried everything that came to my mind (which is not a lot), without success.
Thanks!
Best,
Rodrigo
If you need to do that many, use an RQL query to pull all of the points and set them in a scripted datasource in a loop
OR
Write an angularJS Controller and use the mango api to set them all in one go
Fox
If you are going to need to be setting 100 data points I would consider using a scripting data source. Create a single Binary point in the scripting data source and add the 100 data points to the CONTEXT. Then write a loop in the script that sets all the context points to the value of the Binary points. On your dashboard, you then just set the scripting data source binary point.
Thanks Craig
Thanks guys!
Will give this a try and let you know how it goes.
Best,
Rodrigo
Hi guys,
A question regarding the method @CraigWeb described, will this also work for the Advanced Scheduler?
Or should I enter all those points separately in the scheduler?
Best,
Rodrigo
Yes it will work since the advanced scheduler can be used to run a script on fire.
Fox
Thanks Mr. Fox!
Rodrigo