<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How-to Expose a filtered point through ng-model?]]></title><description><![CDATA[<p dir="auto">Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?<br />
point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"<br />
And expose it as ...  ng-model="mypoint"</p>
]]></description><link>https://forum.mango-os.com/topic/3053/how-to-expose-a-filtered-point-through-ng-model</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 09:28:20 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3053.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Nov 2017 00:39:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How-to Expose a filtered point through ng-model? on Tue, 07 Nov 2017 17:57:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phillip-weeks">@<bdi>phillip-weeks</bdi></a><br />
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.<br />
So the correct method is to filter these points based on the device relevant index.<br />
with a filter like...<br />
&lt;ma-point-statistics id="STATS1" from="dateBar.from" to="<a href="http://dateBar.to" rel="nofollow ugc">dateBar.to</a>" 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'}<br />
:true | maFirst" statistics="statsObj1"&gt;&lt;/ma-point-statistics&gt;<br />
Using the W/L parameter as the base index I can select any point through the array. Yay<br />
And this retrieves the right record.  sorry for my confusion.</p>
]]></description><link>https://forum.mango-os.com/post/16091</link><guid isPermaLink="true">https://forum.mango-os.com/post/16091</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Tue, 07 Nov 2017 17:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to How-to Expose a filtered point through ng-model? on Tue, 07 Nov 2017 15:29:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire">@<bdi>jared-wiltshire</bdi></a>  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 &lt;ma-point-statistics&gt;... How do I do this?</p>
]]></description><link>https://forum.mango-os.com/post/16090</link><guid isPermaLink="true">https://forum.mango-os.com/post/16090</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Tue, 07 Nov 2017 15:29:59 GMT</pubDate></item><item><title><![CDATA[Reply to How-to Expose a filtered point through ng-model? on Mon, 06 Nov 2017 21:10:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phillip-weeks">@<bdi>phillip-weeks</bdi></a> said in <a href="/post/16074">How-to Expose a filtered point through ng-model?</a>:</p>
<blockquote>
<p dir="auto">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.</p>
</blockquote>
<p dir="auto">Are you talking about <code>&lt;ma-point-statistics&gt;</code>? It does not use the <code>ng-model</code> attribute, it has a <code>point</code> or <code>point-xid</code> attribute.</p>
]]></description><link>https://forum.mango-os.com/post/16085</link><guid isPermaLink="true">https://forum.mango-os.com/post/16085</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 06 Nov 2017 21:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to How-to Expose a filtered point through ng-model? on Fri, 03 Nov 2017 22:17:59 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.mango-os.com/post/16074</link><guid isPermaLink="true">https://forum.mango-os.com/post/16074</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Fri, 03 Nov 2017 22:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to How-to Expose a filtered point through ng-model? on Fri, 03 Nov 2017 15:17:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phillip-weeks">@<bdi>phillip-weeks</bdi></a> said in <a href="/post/16063">How-to Expose a filtered point through ng-model?</a>:</p>
<blockquote>
<p dir="auto">Would anyone know how to take a watchlist filtered point such as below and expose it using ng-model?<br />
point="designer.points | filter:{name:'SETPOINT'}:true | maFirst"<br />
And expose it as ...  ng-model="mypoint"</p>
</blockquote>
<p dir="auto">Perhaps you could give us some context as to what you are trying to achieve. <code>ng-model</code> for what component? It is not possible to use a non-assignable expression for a <code>ng-model</code> attribute.</p>
]]></description><link>https://forum.mango-os.com/post/16068</link><guid isPermaLink="true">https://forum.mango-os.com/post/16068</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 03 Nov 2017 15:17:29 GMT</pubDate></item></channel></rss>