<?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[Filtering the Menu list for the Angular JS, Graphs]]></title><description><![CDATA[<p dir="auto">With this menu list provided by Mango. This grabs every point in the Mango DB. Is there a way I can filter this list to specific points, so I can make these lists for specific buildings or areas.</p>
<p dir="auto">&lt;md-input-container class="md-block no-errors-spacer"&gt;<br />
&lt;label&gt;Choose a point&lt;/label&gt;<br />
&lt;ma-point-list ng-model="myPoint"&gt;&lt;/ma-point-list&gt;<br />
&lt;/md-input-container&gt;</p>
]]></description><link>https://forum.mango-os.com/topic/2389/filtering-the-menu-list-for-the-angular-js-graphs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 14:52:30 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2389.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Aug 2016 15:24:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Fri, 05 Aug 2016 19:27:03 GMT]]></title><description><![CDATA[<p dir="auto">Also...  What if I wanted to filter it between two different datasources with specific deviceNames?<br />
,</p>
]]></description><link>https://forum.mango-os.com/post/12347</link><guid isPermaLink="true">https://forum.mango-os.com/post/12347</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Fri, 05 Aug 2016 19:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Fri, 05 Aug 2016 19:13:31 GMT]]></title><description><![CDATA[<p dir="auto">Perfect.  Worked great</p>
]]></description><link>https://forum.mango-os.com/post/12346</link><guid isPermaLink="true">https://forum.mango-os.com/post/12346</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Fri, 05 Aug 2016 19:13:31 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Fri, 05 Aug 2016 19:09:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/atkins.chrisw" aria-label="Profile: atkins.chrisw">@<bdi>atkins.chrisw</bdi></a> said in <a href="/post/12344">Filtering the Menu list for the Angular JS, Graphs</a>:</p>
<blockquote>
<p dir="auto">Thanks Jared.  What If i wanted to filter y the datasource name instead of deviceName?</p>
<p dir="auto">would it be {datasource: "UofU Stadium East'}</p>
</blockquote>
<p dir="auto">It will be <code> {dataSourceName: 'UofU Stadium East'}</code></p>
]]></description><link>https://forum.mango-os.com/post/12345</link><guid isPermaLink="true">https://forum.mango-os.com/post/12345</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 05 Aug 2016 19:09:12 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Fri, 05 Aug 2016 18:59:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Jared.  What If i wanted to filter y the datasource name instead of deviceName?</p>
<p dir="auto">would it be {datasource: "UofU Stadium East'}</p>
]]></description><link>https://forum.mango-os.com/post/12344</link><guid isPermaLink="true">https://forum.mango-os.com/post/12344</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Fri, 05 Aug 2016 18:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Thu, 04 Aug 2016 19:18:48 GMT]]></title><description><![CDATA[<p dir="auto">It would be pretty similar to the example only set to query on deviceName:</p>
<pre><code>    &lt;md-input-container&gt;
        &lt;label&gt;Set Variable for Device Name&lt;/label&gt;
        &lt;input ng-model="deviceNameVariable" ng-model-options="{debounce:500}"&gt;
    &lt;/md-input-container&gt;

    &lt;md-input-container&gt;
        &lt;label&gt;Filtered point list&lt;/label&gt;
        &lt;ma-point-list limit="200" ng-model="myPoint2" query="{deviceName:deviceNameVariable}"&gt;&lt;/ma-point-list&gt;
    &lt;/md-input-container&gt;
</code></pre>
<p dir="auto">In angular you can use <strong>ng-model</strong> or <strong>ng-init</strong> to declare scope variables without the var keyword.</p>
<p dir="auto">With <strong>ng-init</strong> (you can move ng-init to a div at the top of the document)</p>
<pre><code>
    &lt;md-input-container ng-init="deviceNameVariable='meta'"&gt;
        &lt;label&gt;Filtered point list&lt;/label&gt;
        &lt;ma-point-list limit="200" ng-model="myPoint2" query="{deviceName:deviceNameVariable}"&gt;&lt;/ma-point-list&gt;
    &lt;/md-input-container&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12325</link><guid isPermaLink="true">https://forum.mango-os.com/post/12325</guid><dc:creator><![CDATA[Will Geller]]></dc:creator><pubDate>Thu, 04 Aug 2016 19:18:48 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Thu, 04 Aug 2016 16:43:59 GMT]]></title><description><![CDATA[<p dir="auto">Jared,</p>
<p dir="auto">what if I wanted to make a variable reference to the query.  That way, I could add in the top of my document a variable, that would then fill in the deviceName</p>
]]></description><link>https://forum.mango-os.com/post/12322</link><guid isPermaLink="true">https://forum.mango-os.com/post/12322</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Thu, 04 Aug 2016 16:43:59 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Wed, 03 Aug 2016 18:35:38 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Jared.  Worked like a charm</p>
<p dir="auto">I'm loving this btw!!!</p>
]]></description><link>https://forum.mango-os.com/post/12303</link><guid isPermaLink="true">https://forum.mango-os.com/post/12303</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Wed, 03 Aug 2016 18:35:38 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Wed, 03 Aug 2016 16:45:22 GMT]]></title><description><![CDATA[<p dir="auto">I'm going to take it that you are asking why that markup isn't working?</p>
<p dir="auto">Pay close attention to the syntax of the query attribute, it should be <code> query="{deviceName:'032 GAS East'}"</code></p>
]]></description><link>https://forum.mango-os.com/post/12302</link><guid isPermaLink="true">https://forum.mango-os.com/post/12302</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 03 Aug 2016 16:45:22 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Wed, 03 Aug 2016 16:09:57 GMT]]></title><description><![CDATA[<p dir="auto">&lt;div layout="column"&gt;<br />
&lt;md-input-container class="md-block no-errors-spacer"&gt;<br />
&lt;label&gt;Choose a point&lt;/label&gt;<br />
&lt;ma-point-list ng-model="myPoint" query="deviceName(032 GAS East)"&gt;&lt;/ma-point-list&gt;<br />
&lt;/md-input-container&gt;</p>
<pre><code>&lt;p&gt;You have chosen point "{{myPoint.name}}". It is {{myPoint.enabled ? 'enabled' : 'disabled'}} and belongs to device {{myPoint.deviceName}}&lt;/p&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12301</link><guid isPermaLink="true">https://forum.mango-os.com/post/12301</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Wed, 03 Aug 2016 16:09:57 GMT</pubDate></item><item><title><![CDATA[Reply to Filtering the Menu list for the Angular JS, Graphs on Wed, 03 Aug 2016 15:39:20 GMT]]></title><description><![CDATA[<p dir="auto">Yes, please see the "Point list" example under "Basics". I'd recommend setting the "Device name" for each point to your building name, or implementing a specific point naming strategy that incorporates the building/area name.</p>
]]></description><link>https://forum.mango-os.com/post/12300</link><guid isPermaLink="true">https://forum.mango-os.com/post/12300</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 03 Aug 2016 15:39:20 GMT</pubDate></item></channel></rss>