How-to Expose a filtered point through ng-model?
-
Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?
point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"
And expose it as ... ng-model="mypoint" -
@phillip-weeks said in How-to Expose a filtered point through ng-model?:
Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?
point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"
And expose it as ... ng-model="mypoint"Perhaps you could give us some context as to what you are trying to achieve.
ng-model
for what component? It is not possible to use a non-assignable expression for ang-model
attribute. -
Jared I want to pass the watch list point selected by the filter to a statistics object and then set the to and from of that object with the output of a date range object that i pass a date preset to depending on the button clickedby the user. Thus I would like to get this point into a variable which the statistics object can see.
-
@phillip-weeks said in How-to Expose a filtered point through ng-model?:
Jared I want to pass the watch list point selected by the filter to a statistics object and then set the to and from of that object with the output of a date range object that i pass a date preset to depending on the button clickedby the user. Thus I would like to get this point into a variable which the statistics object can see.
Are you talking about
<ma-point-statistics>
? It does not use theng-model
attribute, it has apoint
orpoint-xid
attribute. -
@jared-wiltshire I created a watchlist that contains points from on a query that selects across multiple devices. Ie. (PointA1, PointA2, PointA3... PointD1,PointD2,PointD3) I want to take specific points (using point-xid if necessary) that exist in this designer.points array and I want to provide it to <ma-point-statistics>... How do I do this?
-
@phillip-weeks
for an easy example lets say I select across 10 devices and found 20 points, 10 APARTMENT points and 10 TEMP points and they exist in designer.points.
So the correct method is to filter these points based on the device relevant index.
with a filter like...
<ma-point-statistics id="STATS1" from="dateBar.from" to="dateBar.to" first-last="false" rendered="true" style="position: absolute; left: 762px; top: 515px; width: 232.641px; height: 35px;" point="designer.points | filter:name:UnitElemVar,deviceName:designer.parameters.UnitNumber.substring(0,8)+'1'}
:true | maFirst" statistics="statsObj1"></ma-point-statistics>
Using the W/L parameter as the base index I can select any point through the array. Yay
And this retrieves the right record. sorry for my confusion.