<?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[Group objects into a user component]]></title><description><![CDATA[<p dir="auto">Is there a way to create a group of objects that become a user component and then can be dropped on to the designer and linked to a watchlist which will then populate all the objects in the group/user component ?</p>
<p dir="auto">I have a bunch of devices that gather all the same data. I can see that i can create a single page with all these displays on them and link that page to a watchlist which filters on the device name and then use the dropdown to cycle through the devices that are being displayed on the screen. This is a good option but i would like to be able to show multiple of these devices per page which would be easier if i can create a group object to link to watchlists</p>
]]></description><link>https://forum.mango-os.com/topic/4227/group-objects-into-a-user-component</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 04:53:09 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4227.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 May 2019 00:20:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Group objects into a user component on Tue, 27 Aug 2019 21:25:11 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://forum.infiniteautomation.com/topic/4423/styling-a-custom-component-in-usermodule/9" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4423/styling-a-custom-component-in-usermodule/9</a><br />
<a href="https://forum.infiniteautomation.com/topic/4410/bug-with-amcharts-preview-works-but-page-view-does-not/8" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4410/bug-with-amcharts-preview-works-but-page-view-does-not/8</a><br />
<a href="https://forum.infiniteautomation.com/topic/3509/is-a-directive-or-ability-to-enable-and-disable-points-from-the-new-v3-ui-available-or-in-works/12" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3509/is-a-directive-or-ability-to-enable-and-disable-points-from-the-new-v3-ui-available-or-in-works/12</a><br />
<a href="https://forum.infiniteautomation.com/topic/4216/video-component-codecs/5" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4216/video-component-codecs/5</a><br />
<a href="https://forum.infiniteautomation.com/topic/3522/momentary-button/10" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3522/momentary-button/10</a><br />
<a href="https://forum.infiniteautomation.com/topic/3273/slider-step-as-a-binary/2" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3273/slider-step-as-a-binary/2</a><br />
<a href="https://forum.infiniteautomation.com/topic/2986/events-table-refreshing/4" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2986/events-table-refreshing/4</a><br />
<a href="https://forum.infiniteautomation.com/topic/2982/problem-with-assigning-value-using-mypoint-renderedvalue/2" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2982/problem-with-assigning-value-using-mypoint-renderedvalue/2</a><br />
<a href="https://forum.infiniteautomation.com/topic/2957/how-to-show-average-line-chart-of-multiple-datapoints/5" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2957/how-to-show-average-line-chart-of-multiple-datapoints/5</a><br />
<a href="https://forum.infiniteautomation.com/topic/2862/bar-chart-category-as-x-axis/10" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2862/bar-chart-category-as-x-axis/10</a><br />
<a href="https://forum.infiniteautomation.com/topic/2831/publishing-live-dashboard/10" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2831/publishing-live-dashboard/10</a><br />
<a href="https://forum.infiniteautomation.com/topic/2900/dynamic-text-book-input/5" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2900/dynamic-text-book-input/5</a><br />
<a href="https://forum.infiniteautomation.com/topic/2844/how-to-use-json-receiver-data-point/5" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2844/how-to-use-json-receiver-data-point/5</a></p>
]]></description><link>https://forum.mango-os.com/post/23392</link><guid isPermaLink="true">https://forum.mango-os.com/post/23392</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 27 Aug 2019 21:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Tue, 27 Aug 2019 17:08:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyeager" aria-label="Profile: pyeager">@<bdi>pyeager</bdi></a> said in <a href="/post/23371">Group objects into a user component</a>:</p>
<blockquote>
<p dir="auto">I am aware that I must write code to implement behavior.  How it fits into the framework of angular is less obvious.</p>
</blockquote>
<p dir="auto">We are not here to offer a course in AngularJS, there are literally tens of thousands of articles available on the internet for learning AngularJS.</p>
<p dir="auto">In terms of using AngularJS with Mango, please see below.<br />
Also note that all of the Mango components are open source and available to peruse here -<br />
<a href="https://github.com/infiniteautomation/ma-dashboards/tree/main/UI/web-src/ngMango" rel="nofollow ugc">https://github.com/infiniteautomation/ma-dashboards/tree/main/UI/web-src/ngMango</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyeager" aria-label="Profile: pyeager">@<bdi>pyeager</bdi></a> said in <a href="/post/23371">Group objects into a user component</a>:</p>
<blockquote>
<p dir="auto">Believe it or not, I did indeed search before asking for assistance.  Perhaps you might share some search terms or links to the examples you say exist?</p>
</blockquote>
<p dir="auto">"user module" or "component" returns plenty of results, for your convenience -<br />
<a href="https://forum.infiniteautomation.com/search?term=user%20module&amp;in=titlesposts&amp;matchWords=all&amp;by=Jared%20Wiltshire&amp;sortBy=timestamp&amp;sortDirection=desc&amp;showAs=posts" rel="nofollow ugc">https://forum.infiniteautomation.com/search?term=user module&amp;in=titlesposts&amp;matchWords=all&amp;by=Jared Wiltshire&amp;sortBy=timestamp&amp;sortDirection=desc&amp;showAs=posts</a></p>
<p dir="auto">You also seem to be ignoring the fact that I have posted a user module tailored to your needs here -<a href="https://forum.infiniteautomation.com/topic/4423/styling-a-custom-component-in-usermodule/9" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4423/styling-a-custom-component-in-usermodule/9</a></p>
<p dir="auto">Please remember that this is free support. If you ask specific questions which demonstrate that you have<br />
a) Read and understood the API documentation, examples, help articles, and forum posts<br />
b) Made an effort to implement a solution yourself<br />
c) Followed the advice we have given you<br />
We are far more inclined to help you.</p>
]]></description><link>https://forum.mango-os.com/post/23380</link><guid isPermaLink="true">https://forum.mango-os.com/post/23380</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 27 Aug 2019 17:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Tue, 27 Aug 2019 16:12:14 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">That is because the behavior is up to you as the implementer to define. There are literally infinite possibilities.</p>
</blockquote>
<p dir="auto">I am aware that I must write code to implement behavior.  How it fits into the framework of angular is less obvious.</p>
<blockquote>
<p dir="auto">If you search the forum I promise you will find lots of examples!</p>
</blockquote>
<p dir="auto">Believe it or not, I did indeed search before asking for assistance.  Perhaps you might share some search terms or links to the examples you say exist?</p>
]]></description><link>https://forum.mango-os.com/post/23371</link><guid isPermaLink="true">https://forum.mango-os.com/post/23371</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Tue, 27 Aug 2019 16:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Tue, 27 Aug 2019 00:00:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyeager" aria-label="Profile: pyeager">@<bdi>pyeager</bdi></a> said in <a href="/post/23333">Group objects into a user component</a>:</p>
<blockquote>
<p dir="auto">it doesn't say much about implementing behavior.</p>
</blockquote>
<p dir="auto">That is because the behavior is up to you as the implementer to define. There are literally infinite possibilities.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyeager" aria-label="Profile: pyeager">@<bdi>pyeager</bdi></a> said in <a href="/post/23333">Group objects into a user component</a>:</p>
<blockquote>
<p dir="auto">Could that example be expanded a bit, perhaps to do something like implement a behavior based on a data point?</p>
</blockquote>
<p dir="auto">If you search the forum I promise you will find lots of examples!</p>
]]></description><link>https://forum.mango-os.com/post/23348</link><guid isPermaLink="true">https://forum.mango-os.com/post/23348</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 27 Aug 2019 00:00:20 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Mon, 26 Aug 2019 19:13:18 GMT]]></title><description><![CDATA[<p dir="auto">I am in a similar spot.</p>
<p dir="auto">While the information Jared linked to is sufficient to instantiate an object and define element specific values for the instance, it doesn't say much about implementing behavior.</p>
<p dir="auto">Could that example be expanded a bit, perhaps to do something like implement a behavior based on a data point?</p>
]]></description><link>https://forum.mango-os.com/post/23333</link><guid isPermaLink="true">https://forum.mango-os.com/post/23333</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Mon, 26 Aug 2019 19:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Fri, 24 May 2019 15:42:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wallobee" aria-label="Profile: wallobee">@<bdi>wallobee</bdi></a> said in <a href="/post/22226">Group objects into a user component</a>:</p>
<blockquote>
<p dir="auto">Is there a way to create a group of objects that become a user component and then can be dropped on to the designer and linked to a watchlist which will then populate all the objects in the group/user component ?</p>
</blockquote>
<p dir="auto">Absolutely, here is the help link for user modules - <a href="https://help.infiniteautomation.com/getting-started-with-a-user-module" rel="nofollow ugc">https://help.infiniteautomation.com/getting-started-with-a-user-module</a></p>
<p dir="auto">I would suggest passing through the list of points to your component then filtering the points using tags inside the component.</p>
<p dir="auto">Once you have a component in your user module you should be able to drop it onto the page from the left menu.</p>
]]></description><link>https://forum.mango-os.com/post/22233</link><guid isPermaLink="true">https://forum.mango-os.com/post/22233</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 24 May 2019 15:42:25 GMT</pubDate></item><item><title><![CDATA[Reply to Group objects into a user component on Fri, 24 May 2019 06:12:14 GMT]]></title><description><![CDATA[<p dir="auto">I've been doing something similar to this - you may want to have a look at some of my previous posts to do the same; but in summary:</p>
<ul>
<li>
<p dir="auto">Use tags - if you have the same point in different devices use the device name as one tag and the function as a second</p>
</li>
<li>
<p dir="auto">If your situation may have future additions, you can use a JSON store as the source of your devices</p>
</li>
<li>
<p dir="auto">If your situation will be a low volume of new devices, you might want to use an <code>ng-repeat</code> using a range with your devices in; eg <code>&lt;div ng-repeat="device in range('Device1','Device2','Device3' ... 'DeviceN')"&gt;</code></p>
</li>
<li>
<p dir="auto">Within that main div grab your point query with <code>&lt;ma-point-query query="'eq(tags.Device,'+device+')&amp;eq(tags.Display,Point1)'" points="points[n]" &gt;&lt;/ma-point-query&gt;&lt;!-- data --&gt;</code></p>
</li>
<li>
<p dir="auto">Cycle through <code>points[n]</code> to find your specific data point value <code>&lt;span ng-repeat="point in points[n]"&gt;&lt;ma-get-point-value point-xid="{{ point.xid }}" point="output"&gt;&lt;/ma-get-point-value&gt;{{ output.renderedValue }}&lt;/span&gt;</code></p>
</li>
</ul>
<p dir="auto">Hope that helps to get you started ... !! I'm sure the learned people at IA will chime in with a better way than what I've done; but it may require you to start digging into the AngularJS side of things ....</p>
<p dir="auto">Cheers</p>
<p dir="auto">Richard</p>
]]></description><link>https://forum.mango-os.com/post/22229</link><guid isPermaLink="true">https://forum.mango-os.com/post/22229</guid><dc:creator><![CDATA[richard.mortimer]]></dc:creator><pubDate>Fri, 24 May 2019 06:12:14 GMT</pubDate></item></channel></rss>