<?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[Data Point Value]]></title><description><![CDATA[<p dir="auto">A question about Point Value type,<br />
How to save object type like <code>newValue = {"Name":"CardName_A02","Rack":"CardNo_A02","Label":"A","idx":2}</code><br />
into datapoint ?<br />
I use<br />
<code>Point.setValue(newValue)</code><br />
but in Point's value is null<br />
How do I do to save object type value in datapoint?</p>
]]></description><link>https://forum.mango-os.com/topic/5155/data-point-value</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 16:26:55 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5155.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Apr 2021 03:19:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Data Point Value on Thu, 08 Apr 2021 18:28:42 GMT]]></title><description><![CDATA[<p dir="auto">I am with Craig now that I can see what you are trying to do. The rackspaces can be defined in a json store like he says and then pulled with a <code>&lt;ma-json-store&gt;</code></p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26518</link><guid isPermaLink="true">https://forum.mango-os.com/post/26518</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Apr 2021 18:28:42 GMT</pubDate></item><item><title><![CDATA[Reply to Data Point Value on Thu, 08 Apr 2021 10:53:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sean" aria-label="Profile: sean">@<bdi>sean</bdi></a> if what you are trying to do does not need a time series history then I believe the JSON store is better suited for this.  The JSON store is there to be used for static data.  There is a limit on the size of the string that can be stored as a value.</p>
]]></description><link>https://forum.mango-os.com/post/26517</link><guid isPermaLink="true">https://forum.mango-os.com/post/26517</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Thu, 08 Apr 2021 10:53:10 GMT</pubDate></item><item><title><![CDATA[Reply to Data Point Value on Thu, 08 Apr 2021 06:06:45 GMT]]></title><description><![CDATA[<p dir="auto">No thats not how the system works. If you want to save it, use JSON.stringify(obj) and then save that. That will allow you (mostly) to store the object as a string.</p>
<p dir="auto">Then you can get the object back using JSON.parse(string)</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/26516</link><guid isPermaLink="true">https://forum.mango-os.com/post/26516</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Apr 2021 06:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to Data Point Value on Thu, 08 Apr 2021 06:08:54 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> I just want save object in value or value can't be object?<br />
Code is this</p>
<pre><code>        &lt;div ng-init="rackList = [ 
        {'Name': 'CardName_A01', 'Rack': 'CardNo_A01', 'Label': 'A', 'idx': 1}, {'Name': 'CardName_A02', 'Rack': 'CardNo_A02', 'Label': 'A', 'idx': 2}, {'Name': 'CardName_A03', 'Rack':'CardNo_A03', 'Label': 'A', 'idx': 3},
        {'Name': 'CardName_A04', 'Rack': 'CardNo_A04', 'Label': 'A', 'idx': 4}, {'Name': 'CardName_A05', 'Rack': 'CardNo_A05', 'Label': 'A', 'idx': 5}, 
        {'Name': 'CardName_A06', 'Rack': 'CardNo_A06', 'Label': 'A', 'idx': 6}, {'Name': 'CardName_A07', 'Rack': 'CardNo_A07', 'Label': 'A', 'idx': 7}, {'Name': 'CardName_A08', 'Rack':'CardNo_A08', 'Label': 'A', 'idx': 8}, 
        {'Name': 'CardName_A09', 'Rack': 'CardNo_A09', 'Label': 'A', 'idx': 9}, {'Name': 'CardName_A10', 'Rack': 'CardNo_A10', 'Label': 'A', 'idx': 10},
        {'Name': 'CardName_B01', 'Rack': 'CardNo_B01', 'Label': 'B', 'idx': 1}, {'Name': 'CardName_B02', 'Rack': 'CardNo_B02', 'Label': 'B', 'idx': 2}, {'Name': 'CardName_B03', 'Rack':'CardNo_B03', 'Label': 'B', 'idx': 3}, 
        {'Name': 'CardName_B04', 'Rack': 'CardNo_B04', 'Label': 'B', 'idx': 4}, {'Name': 'CardName_B05', 'Rack': 'CardNo_B05', 'Label': 'B', 'idx': 5}, 
        {'Name': 'CardName_B06', 'Rack': 'CardNo_B06', 'Label': 'B', 'idx': 6}, {'Name': 'CardName_B07', 'Rack': 'CardNo_B07', 'Label': 'B', 'idx': 7}, {'Name': 'CardName_B08', 'Rack':'CardNo_B08', 'Label': 'B', 'idx': 8}, 
        {'Name': 'CardName_B09', 'Rack': 'CardNo_B09', 'Label': 'B', 'idx': 9}, {'Name': 'CardName_B10', 'Rack': 'CardNo_B10', 'Label': 'B', 'idx': 10},
        {'Name': 'CardName_C01', 'Rack': 'CardNo_C01', 'Label': 'C', 'idx': 1}, {'Name': 'CardName_C02', 'Rack': 'CardNo_C02', 'Label': 'C', 'idx': 2}, {'Name': 'CardName_C03', 'Rack':'CardNo_C03', 'Label': 'C', 'idx': 3}, 
        {'Name': 'CardName_C04', 'Rack': 'CardNo_C04', 'Label': 'C', 'idx': 4}, {'Name': 'CardName_C05', 'Rack': 'CardNo_C05', 'Label': 'C', 'idx': 5}, 
        {'Name': 'CardName_C06', 'Rack': 'CardNo_C06', 'Label': 'C', 'idx': 6}, {'Name': 'CardName_C07', 'Rack': 'CardNo_C07', 'Label': 'C', 'idx': 7}, {'Name': 'CardName_C08', 'Rack':'CardNo_C08', 'Label': 'C', 'idx': 8}, 
        {'Name': 'CardName_C09', 'Rack': 'CardNo_C09', 'Label': 'C', 'idx': 9}, {'Name': 'CardName_C10', 'Rack': 'CardNo_C10', 'Label': 'C', 'idx': 10},
        {'Name': 'CardName_D01', 'Rack': 'CardNo_D01', 'Label': 'D', 'idx': 1}, {'Name': 'CardName_D02', 'Rack': 'CardNo_D02', 'Label': 'D', 'idx': 2}, {'Name': 'CardName_D03', 'Rack':'CardNo_D03', 'Label': 'D', 'idx': 3}, 
        {'Name': 'CardName_D04', 'Rack': 'CardNo_D04', 'Label': 'D', 'idx': 4}, {'Name': 'CardName_D05', 'Rack': 'CardNo_D05', 'Label': 'D', 'idx': 5}, 
        {'Name': 'CardName_D06', 'Rack': 'CardNo_D06', 'Label': 'D', 'idx': 6}, {'Name': 'CardName_D07', 'Rack': 'CardNo_D07', 'Label': 'D', 'idx': 7}, {'Name': 'CardName_D08', 'Rack':'CardNo_D08', 'Label': 'D', 'idx': 8}, 
        {'Name': 'CardName_D09', 'Rack': 'CardNo_D09', 'Label': 'D', 'idx': 9}, {'Name': 'CardName_D10', 'Rack': 'CardNo_D10', 'Label': 'D', 'idx': 10},
        {'Name': 'CardName_E01', 'Rack': 'CardNo_E01', 'Label': 'E', 'idx': 1}, {'Name': 'CardName_E02', 'Rack': 'CardNo_E02', 'Label': 'E', 'idx': 2}, {'Name': 'CardName_E03', 'Rack':'CardNo_E03', 'Label': 'E', 'idx': 3}, 
        {'Name': 'CardName_E04', 'Rack': 'CardNo_E04', 'Label': 'E', 'idx': 4}
        ]"&gt;&lt;/div&gt;
        &lt;ma-get-point-value point-xid="XID_cardControllerLastRack" point="LastRackSelect"&gt;&lt;/ma-get-point-value&gt;
        &lt;div ng-init="pointName.Rack = LastRackSelect.value"&gt;&lt;/div&gt;
        &lt;ma-point-query query="{$and: true,name:pointName.Rack,deviceName: 'RackAccessSystem'}" sort="'name'" points="points"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{$and: true,name:pointName.Name,deviceName: 'RackAccessSystem'}" sort="'name'" points="names"&gt;&lt;/ma-point-query&gt;
        &lt;ma-get-point-value points="points"&gt;&lt;/ma-get-point-value&gt;
        &lt;ma-get-point-value points="names"&gt;&lt;/ma-get-point-value&gt;
&lt;form layout-gt-sm="row" name="Form"&gt;
                &lt;md-input-container flex="" id="cardedit"&gt;
                    &lt;label&gt;select Item&lt;/label&gt;
                    &lt;md-select class="select-block" ng-model="pointName" ng-change="LastRackSelect.setValue(pointName)" ng-model-options="{getterSetter:true}"&gt;
                        &lt;md-option ng-repeat="Rack in rackList" ng-value="Rack"&gt;{{Rack.Name | limitTo:3:9}}&lt;/md-option&gt;
                    &lt;/md-select&gt;
                &lt;/md-input-container&gt;
            &lt;/form&gt;
</code></pre>
<p dir="auto">I want to save select <code>pointName</code> object to save in datapoint <code>XID_cardControllerLastRack</code><br />
when nexttime into this page can load <code>XID_cardControllerLastRack</code> value to use default select ng-model</p>
]]></description><link>https://forum.mango-os.com/post/26515</link><guid isPermaLink="true">https://forum.mango-os.com/post/26515</guid><dc:creator><![CDATA[sean]]></dc:creator><pubDate>Thu, 08 Apr 2021 06:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to Data Point Value on Thu, 08 Apr 2021 04:09:50 GMT]]></title><description><![CDATA[<p dir="auto">If you wish to save a string, make sure your point is an alphanumeric value. Secondly, ensure your data is a string and not an object.<br />
Thirdly, if this is in a script the method is set() not setValue. The dashboard is setValue()<br />
Fox</p>
]]></description><link>https://forum.mango-os.com/post/26513</link><guid isPermaLink="true">https://forum.mango-os.com/post/26513</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 08 Apr 2021 04:09:50 GMT</pubDate></item></channel></rss>