<?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[Opening image based on datapoint value under watch list]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I have a filtered watchlist select which contains data from 2 IP addresses that are inside the same device in the field: &lt;ma-watch-list-select id="a9c722c9-aac1-492a-b026-799c6922ab1f" style="position: absolute; left: 0px; top: 203.97px; width: 206.996px; height: 58.9915px;" ng-model="designer.watchList" parameters="designer.parameters" query="{name:'X1_'}"&gt;&lt;/ma-watch-list-select&gt;</p>
<p dir="auto">Based on the watch list selected above I display various parameters, amongst others a serial number: &lt;ma-point-value id="3883ca56-bae3-465d-99ee-7a21c90fec6c" style="position: absolute; left: 283.999px; top: 0px; font-size: 32px;" enable-popup="hide" point="designer.points | filter:{name:'Camera_name'}:true | maFirst" label="Serial"&gt;&lt;/ma-point-value&gt;</p>
<p dir="auto">Now I want to display an image in a particular folder (where 50 need to be replaced by the point value above):<br />
&lt;img id="20775be3-db0d-4080-a358-713e89d5dcff" style="position: absolute; left: 213.8px; top: 50px; width: 600px; height: 450px; display: flex;" ng-src="/50/lastimage.jpg"&gt;</p>
<p dir="auto">I understand that I can use {{myPoint}}, but I cannot find a way to get the particular point from the watch list and bind it to a variable?</p>
<p dir="auto">I have looked at ma-get-point-value, but the help file says: "This directive pulls the live value of a data point and outputs it onto the point object", however the help is unclear what the SOURCE and what the SINK(DESTINATION) objects are.</p>
<p dir="auto">The designer creates this:<br />
&lt;ma-get-point-value id="3152e3f9-be26-4e9d-9357-312f474a7018" style="position: absolute; left: 84px; top: 342px;" point="designer.points | filter:{name:'Camera_name'}:true | maFirst"&gt;&lt;/ma-get-point-value&gt;<br />
but how do I define what this point value should then be assigned to in order to use it elsewhere {{  }}</p>
<p dir="auto">I appreciate your help. Do you have somewhere a list of all the parameters for each of your "ma-" objects? The help files dont seem to list all. I find some assignments in the dashboard designer that are not in the help.</p>
]]></description><link>https://forum.mango-os.com/topic/3400/opening-image-based-on-datapoint-value-under-watch-list</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 23:27:13 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3400.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Apr 2018 14:02:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Opening image based on datapoint value under watch list on Thu, 10 May 2018 16:32:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glamprecht" aria-label="Profile: glamprecht">@<bdi>glamprecht</bdi></a> said in <a href="/post/18361">Opening image based on datapoint value under watch list</a>:</p>
<blockquote>
<p dir="auto">I can now see how to get the point value. Likewise I can get the dataSourceXid like this:<br />
(designer.points | filter:{name:'Camera_name'}:true | maFirst).dataSourceXid)</p>
<p dir="auto">Instead of using the value as in the past, I would now like to get the last digits of the IP address of the dataSourceXid (being an SNMP datasource)</p>
<p dir="auto">I can see how to access the datapoint through designer.points ,but I cannot figure out how to access the datasource and its address?</p>
</blockquote>
<p dir="auto">You would have to retrieve the data source by its XID for each data point, there's not an easy way of doing this. I would recommend using the bulk data point editor to set a tag on each of your datapoints and use this tag instead.</p>
]]></description><link>https://forum.mango-os.com/post/18380</link><guid isPermaLink="true">https://forum.mango-os.com/post/18380</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 10 May 2018 16:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Opening image based on datapoint value under watch list on Wed, 09 May 2018 13:29:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: jared-wiltshire">@<bdi>jared-wiltshire</bdi></a> said in <a href="/post/17959">Opening image based on datapoint value under watch list</a>:</p>
<p dir="auto">I can now see how to get the point value. Likewise I can get the dataSourceXid like this:<br />
(designer.points | filter:{name:'Camera_name'}:true | maFirst).dataSourceXid)</p>
<p dir="auto">Instead of using the value as in the past, I would now like to get the last digits of the IP address of the dataSourceXid (being an SNMP datasource)</p>
<p dir="auto">I can see how to access the datapoint through designer.points ,but I cannot figure out how to access the datasource and its address?</p>
]]></description><link>https://forum.mango-os.com/post/18361</link><guid isPermaLink="true">https://forum.mango-os.com/post/18361</guid><dc:creator><![CDATA[glamprecht]]></dc:creator><pubDate>Wed, 09 May 2018 13:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to Opening image based on datapoint value under watch list on Tue, 10 Apr 2018 15:13:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glamprecht" aria-label="Profile: glamprecht">@<bdi>glamprecht</bdi></a> said in <a href="/post/17958">Opening image based on datapoint value under watch list</a>:</p>
<blockquote>
<p dir="auto">I understand that I can use {{myPoint}}, but I cannot find a way to get the particular point from the watch list and bind it to a variable?</p>
</blockquote>
<p dir="auto">This expression will get a single point from the watch list by name -<br />
<code>designer.points | filter:{name:'Camera_name'}:true | maFirst</code>, so to use its value you can do <code>(designer.points | filter:{name:'Camera_name'}:true | maFirst).value)</code></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glamprecht" aria-label="Profile: glamprecht">@<bdi>glamprecht</bdi></a> said in <a href="/post/17958">Opening image based on datapoint value under watch list</a>:</p>
<blockquote>
<p dir="auto">however the help is unclear what the SOURCE and what the SINK(DESTINATION) objects are.</p>
</blockquote>
<p dir="auto">There's not really a "source" or "sink", it takes a data point and adds a value property to it. Alternatively it also takes a <code>point-xid="my-xid"</code> parameter and outputs a point (and value property) using the <code>point="myPoint"</code> attribute.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glamprecht" aria-label="Profile: glamprecht">@<bdi>glamprecht</bdi></a> said in <a href="/post/17958">Opening image based on datapoint value under watch list</a>:</p>
<blockquote>
<p dir="auto">Do you have somewhere a list of all the parameters for each of your "ma-" objects? The help files dont seem to list all. I find some assignments in the dashboard designer that are not in the help.</p>
</blockquote>
<p dir="auto">You are correct, the help files are not comprehensive unfortunately. The dashboard designer will always list every component and attributes as it reads it from the code itself.</p>
]]></description><link>https://forum.mango-os.com/post/17959</link><guid isPermaLink="true">https://forum.mango-os.com/post/17959</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 10 Apr 2018 15:13:10 GMT</pubDate></item></channel></rss>