<?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 we can filter the json and dynamically pass the data to create multiline chart in mango automation]]></title><description><![CDATA[<p dir="auto">How we can filter the JSON and dynamically pass the data to create multiline chart in mango automation.</p>
<p dir="auto">I am getting my JSON value from &lt;ma-get-point-value&gt; and on filtering the data with few parameters.<br />
Its throwing errors.</p>
<p dir="auto">"<strong>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!</strong>"</p>
]]></description><link>https://forum.mango-os.com/topic/5165/how-we-can-filter-the-json-and-dynamically-pass-the-data-to-create-multiline-chart-in-mango-automation</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 10:57:09 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5165.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Apr 2021 06:24:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Wed, 28 Apr 2021 05:03:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/himanshu" aria-label="Profile: himanshu">@<bdi>himanshu</bdi></a></p>
<p dir="auto">It is the exact same concept.:<br />
<code>&lt;ma-state-params on-change="designer.parameters.dn = $stateParams.dn" update-params="designer.updateParams"&gt;&lt;/ma-state-params&gt;</code><br />
this component takes the URL parameters and puts them into a object called designer.updateParams.  That object can be used anywhere now in the pages scope.</p>
]]></description><link>https://forum.mango-os.com/post/26598</link><guid isPermaLink="true">https://forum.mango-os.com/post/26598</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Wed, 28 Apr 2021 05:03:51 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Wed, 28 Apr 2021 03:34:21 GMT]]></title><description><![CDATA[<p dir="auto">Refer to your other post, I left an update there should that help you</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26597</link><guid isPermaLink="true">https://forum.mango-os.com/post/26597</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Wed, 28 Apr 2021 03:34:21 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Wed, 28 Apr 2021 02:56:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craigweb" aria-label="Profile: craigweb">@<bdi>craigweb</bdi></a><br />
No this in not useful in my scenario as I have urn passing to one of my component and I want to use those URL parameters in component.</p>
<p dir="auto">This example only works when we created two pages from dashboard designer and then linking to each another.<br />
But not working with page to component parsing.</p>
]]></description><link>https://forum.mango-os.com/post/26596</link><guid isPermaLink="true">https://forum.mango-os.com/post/26596</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Wed, 28 Apr 2021 02:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 13:30:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/himanshu" aria-label="Profile: himanshu">@<bdi>himanshu</bdi></a> Does this help page answer your question ? <a href="https://docs-v3.mango-os.com/linking-to-dynamic-pages" rel="nofollow ugc">https://docs-v3.mango-os.com/linking-to-dynamic-pages</a></p>
]]></description><link>https://forum.mango-os.com/post/26593</link><guid isPermaLink="true">https://forum.mango-os.com/post/26593</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Tue, 27 Apr 2021 13:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 08:15:37 GMT]]></title><description><![CDATA[<p dir="auto">Just had a thought, thinking about something I did recently... I didnt care much for params since I had my own components doing the heavy lifting.. So I used the $state provider and pulled in the url, split by / then use what was on the end. Why dont you do the same with the ? and the &amp;? Then split each result by = for your key value pairs and run as needed. Just one of those shower thoughts haha.</p>
<p dir="auto">EDIT: Nope sorry, completely ballsed that one up. If you want your params, add to the menu item: <code>?item1&amp;item2 </code><br />
Do not add = in your menu link. Just do that and your stateparams will be available.<br />
ie: your menu link will be.</p>
<pre><code>/mycomponentpage?thisDevice&amp;thatvalue&amp;anotherkey
</code></pre>
<p dir="auto">Your $state.params will be</p>
<pre><code>{
thisDevice: '',
thatvalue:'',
anotherkey:''
}

</code></pre>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26591</link><guid isPermaLink="true">https://forum.mango-os.com/post/26591</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 27 Apr 2021 08:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 05:06:55 GMT]]></title><description><![CDATA[<p dir="auto">Sorry am a little overrun, however, this is their dashboard repo.<br />
<a href="https://github.com/infiniteautomation/ma-dashboards/tree/3.7.x" rel="nofollow ugc">https://github.com/infiniteautomation/ma-dashboards/tree/3.7.x</a></p>
<p dir="auto">This should shed some light on how their stateparams work</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26590</link><guid isPermaLink="true">https://forum.mango-os.com/post/26590</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 27 Apr 2021 05:06:55 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 04:43:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a><br />
Yes we are extending the userModule.<br />
I just want to "get" the param in html / controller file .</p>
]]></description><link>https://forum.mango-os.com/post/26589</link><guid isPermaLink="true">https://forum.mango-os.com/post/26589</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Tue, 27 Apr 2021 04:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 03:47:20 GMT]]></title><description><![CDATA[<p dir="auto">What's your controller?<br />
Paste all code here. May as well look at what you are doing.<br />
Are you extending with the userModule?</p>
]]></description><link>https://forum.mango-os.com/post/26588</link><guid isPermaLink="true">https://forum.mango-os.com/post/26588</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 27 Apr 2021 03:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Tue, 27 Apr 2021 02:36:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a><br />
Hey Mate,<br />
as per you above example I am doing the same thing but my problem is...<br />
I want to access those params in one of my controller/component file.</p>
<p dir="auto">&lt;a ng-href="<a href="http://www.testurl.com/ui/testpage/?toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2" rel="nofollow ugc">www.testurl.com/ui/testpage/?toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2</a>"&gt;</p>
<p dir="auto">This link would redirect me to my component called testpage.html in that file i am unable to access the params .<br />
I want to access my params in my components HTML file as well as controller file.</p>
]]></description><link>https://forum.mango-os.com/post/26587</link><guid isPermaLink="true">https://forum.mango-os.com/post/26587</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Tue, 27 Apr 2021 02:36:06 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 20:51:15 GMT]]></title><description><![CDATA[<p dir="auto">As I said, read the help docs, create a watchlist with query as the type and add your parameters in there. Leverage them with the stateparams and apply them to the watchlist lookup</p>
<p dir="auto"><a href="https://docs-v3.mango-os.com/linking-to-dynamic-pages" rel="nofollow ugc">https://docs-v3.mango-os.com/linking-to-dynamic-pages</a></p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26585</link><guid isPermaLink="true">https://forum.mango-os.com/post/26585</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 26 Apr 2021 20:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 07:45:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a><br />
Thanks Mate..<br />
But the url is coming from different page.<br />
Like &lt;a ng-href="<a href="http://www.testurl.com/ui/testpage/?toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2" rel="nofollow ugc">www.testurl.com/ui/testpage/?toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2</a>"</p>
<p dir="auto">and now on testpage.html<br />
i am using &lt;ma-state-params&gt; where i want data to get placed on basis of URL.</p>
]]></description><link>https://forum.mango-os.com/post/26583</link><guid isPermaLink="true">https://forum.mango-os.com/post/26583</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Mon, 26 Apr 2021 07:45:59 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 07:36:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/himanshu" aria-label="Profile: himanshu">@<bdi>himanshu</bdi></a> said in <a href="/post/26581">How we can filter the json and dynamically pass the data to create multiline chart in mango automation</a>:</p>
<blockquote>
<p dir="auto">toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2</p>
</blockquote>
<p dir="auto">I suggest you change dp to dp1 and dp2. By using dp twice you overwrite the parameter.</p>
<p dir="auto">Secondly, have you read this help doc?</p>
<p dir="auto"><a href="https://docs-v3.mango-os.com/dynamic-floor-plan" rel="nofollow ugc">https://docs-v3.mango-os.com/dynamic-floor-plan</a></p>
<p dir="auto">Only out with my phone at the moment so I dont have an active mango instance handy! Only whats in my head...<br />
That doc explains how to attach params to components in the dashboard.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26582</link><guid isPermaLink="true">https://forum.mango-os.com/post/26582</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 26 Apr 2021 07:36:09 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 07:17:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a><br />
Yes I would require your help on one more topic..</p>
<p dir="auto">I am passing the params from dashboard-designer<br />
url:<br />
?toilet=TSTE-H2&amp;dp=Temperature&amp;dp=State&amp;type=shioiaq2</p>
<p dir="auto">and i want to dynamicaally fetch URL data in to one of html in<br />
ma-state-params</p>
]]></description><link>https://forum.mango-os.com/post/26581</link><guid isPermaLink="true">https://forum.mango-os.com/post/26581</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Mon, 26 Apr 2021 07:17:29 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 07:00:39 GMT]]></title><description><![CDATA[<p dir="auto">Anytime, well done and good luck. Always here if needed.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26580</link><guid isPermaLink="true">https://forum.mango-os.com/post/26580</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 26 Apr 2021 07:00:39 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 06:57:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> said in <a href="/post/26578">How we can filter the json and dynamically pass the data to create multiline chart in mango automation</a>:</p>
<blockquote>
<p dir="auto">shioiaq2</p>
</blockquote>
<p dir="auto">Thanks alot mate.<br />
It worked for me..</p>
<p dir="auto">Highly appreciated.<br />
Thanks Alot.</p>
]]></description><link>https://forum.mango-os.com/post/26579</link><guid isPermaLink="true">https://forum.mango-os.com/post/26579</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Mon, 26 Apr 2021 06:57:26 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 06:05:13 GMT]]></title><description><![CDATA[<p dir="auto">Ok first up. Show all of your markup in code tags. First it appeared you were trying to derive values from what you had stored in datapoints. I see you were confused and actually meant its JSON store data for a watchlist.<br />
Use ma point query and build a RQL query using the watchlist builder. This way you can pull only what you want.</p>
<pre><code>&lt;ma-point-query query="'and(eq(name,Temperature),eq(tags.Sensor Type,shioiaq2))&amp;limit(2)'" points="tmpPts"&gt; &lt;/ma-point-query&gt;

&lt;div ng-repeat="pt in tmpPts"&gt;
&lt;ma-point-values .... &gt;

&lt;ma-serial-chart .... &gt;
&lt;/div&gt;

</code></pre>
<p dir="auto">Once you markup is visible we can get rid of your digest error.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26578</link><guid isPermaLink="true">https://forum.mango-os.com/post/26578</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 26 Apr 2021 06:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Mon, 26 Apr 2021 02:20:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a><br />
Hey Mate Can you please explain me with small snippet of code / any example please.<br />
Values are not my concern as values are getting passed properly and even the graph is getting created.</p>
<p dir="auto">As I filtered the data like this<br />
{{myIAQTemp=(designer.points | filter:{name:'Temperature'}:true | maFilterByTags:{'Sensor Type': 'shioiaq2'}:true | limitTo:2);""}}<br />
its giving me the output of graph accurate as I want...</p>
<p dir="auto">"Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!"</p>
<p dir="auto">But this error is ruining my life..it keeps on coming on page load after implementing that filter.</p>
]]></description><link>https://forum.mango-os.com/post/26577</link><guid isPermaLink="true">https://forum.mango-os.com/post/26577</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Mon, 26 Apr 2021 02:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Sun, 25 Apr 2021 02:35:32 GMT]]></title><description><![CDATA[<p dir="auto">If that is the case I recommend using a meta data source.<br />
Use this datapoint as the context point and return the temperature value after decoding it with <code>JSON.parse</code><br />
Sort through the object and as said before, return the temperature value.</p>
<p dir="auto">The meta point can then be used to populate your charts. Hope that helps!<br />
Although, what is you actual value? I do not see anything numerical<br />
Fox</p>
]]></description><link>https://forum.mango-os.com/post/26576</link><guid isPermaLink="true">https://forum.mango-os.com/post/26576</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sun, 25 Apr 2021 02:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Sat, 24 Apr 2021 15:24:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a></p>
<p dir="auto">{{myIAQTemp=(designer.points | filter:{name:'Temperature'}:true | maFilterByTags:{'Sensor Type': 'shioiaq2'}:true |  limitTo:2);""}}</p>
<p dir="auto">This is the way I am trying to filter the data and passing the value in the ma-point-value and ma-serial-chart.</p>
<p dir="auto">my json contains<br />
[<br />
{<br />
name: 'Temperature',<br />
"tags": {<br />
"Sensor Type": "shioiaq2",<br />
}<br />
},<br />
{<br />
name: 'State',<br />
"tags": {<br />
"Sensor Type": "shioiaq2",<br />
}<br />
}<br />
]</p>
<p dir="auto">I want to filter only on temperature and sensor type<br />
and exclude the object of name : state</p>
]]></description><link>https://forum.mango-os.com/post/26575</link><guid isPermaLink="true">https://forum.mango-os.com/post/26575</guid><dc:creator><![CDATA[himanshu]]></dc:creator><pubDate>Sat, 24 Apr 2021 15:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to How we can filter the json and dynamically pass the data to create multiline chart in mango automation on Fri, 23 Apr 2021 14:22:57 GMT]]></title><description><![CDATA[<p dir="auto">Can you show me the format of your data? I wrote  a component to help another user format their data from JSON to the structure required by the amcharts to work as desired.<br />
Might be worth looking up what I did and see if aligns with your work.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26574</link><guid isPermaLink="true">https://forum.mango-os.com/post/26574</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Fri, 23 Apr 2021 14:22:57 GMT</pubDate></item></channel></rss>