<?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[Multistate Data Point in Virtual Source]]></title><description><![CDATA[<p dir="auto">I had a data point in a virtual datasource that had been misdefined as binary.</p>
<p dir="auto">I tried to edit the data point to make it multistate, but ran into a problem.</p>
<p dir="auto">The edit data point dialog insisted that I define a start value.</p>
<p dir="auto">While this is desirable and reasonable, when I click in the field for the start value, it appears that an empty dropdown is presented right over the field.</p>
<p dir="auto">I also tried to do the same thing in the legacy interface.  While I was able to enter a start value, there was an error notification when I tried to save it:</p>
<p dir="auto"><strong>No contextual field found for key textRenderer.textRenderer.multistateValues</strong></p>
<p dir="auto">It seems possible that, for a multistate data point, a set of states need to be defined, but I haven't seen a place to do that.</p>
<p dir="auto">The behavior appears to be the same whether I try to modify a binary data point to make it multistate, or create a new multistate data point.</p>
<p dir="auto">The one multistate data point that I have was created a Mango version or two ago.  Perhaps this problem recently appeared?</p>
<p dir="auto">Edit:  It seems that this problem also renders already existing multistate data points as uneditable, as in this case, setting a start value is required and the same behavior prevents setting one.</p>
]]></description><link>https://forum.mango-os.com/topic/4332/multistate-data-point-in-virtual-source</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 13:08:28 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4332.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jul 2019 17:34:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Thu, 15 Aug 2019 20:53:18 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> Oh, I think it's not very intuitive, I hadn't realized that these values ​​were chips.</p>
<p dir="auto">I really appreciate your help, thanks!</p>
]]></description><link>https://forum.mango-os.com/post/23157</link><guid isPermaLink="true">https://forum.mango-os.com/post/23157</guid><dc:creator><![CDATA[johana crisbany gamez]]></dc:creator><pubDate>Thu, 15 Aug 2019 20:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Fri, 16 Aug 2019 15:02:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johana-crisbany-gamez" aria-label="Profile: johana-crisbany-gamez">@<bdi>johana-crisbany-gamez</bdi></a></p>
<p dir="auto">Don't feel bad.  It took me a while to figure this out.</p>
<p dir="auto">If you define a multistate data point in a virtual data source, you need to define values for the states.  On the Virtual data point dialog shown above, when you mouse over the area under Values, up and down arrows will appear at the right side of that field.  You can use those arrows to adjust to your first value, or just enter a number directly.</p>
<p dir="auto">Once the correct number shows for your first value, hit enter.  Your first value will now appear on a white background, like this:</p>
<p dir="auto"><img src="https://camo.nodebb.org/c2f02e7a09e6314967526a7858b09bd3815d8783?url=https%3A%2F%2Fi.imgur.com%2FqYx65MA.png" alt="0_1565901899384_vdpvalues.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">You will note that the dialog is now helpfully suggesting 2 as the next value.  If that works for you, just hit enter, and you will see this:</p>
<p dir="auto"><img src="https://camo.nodebb.org/58ecfca45ba012f1c63c3500d0f21b95ddfd6f39?url=https%3A%2F%2Fi.imgur.com%2FC4bQMKJ.png" alt="0_1565902029284_vdpvalues2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Repeat this process until you have defined all your values for the multistate data point.</p>
<p dir="auto">Now when you click in the Start value field, you should see a list of the values you just defined appear over the field.  Select the desired value.</p>
<p dir="auto"><img src="https://camo.nodebb.org/4ed2c05b7eacadcb074ec55f1e834e37d8a3a847?url=https%3A%2F%2Fi.imgur.com%2F8bjXUxp.png" alt="0_1565902718664_vdpstart.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The above is what is working for me.  However, there is a known bug with this dialog.</p>
<p dir="auto">Once you define your multistate data point and save it, if the change type is "no change", when you try to edit it you will not see the state values or the start value you defined.  The dialog will not let you save changes until you again enter state values and  a start value.  This again is a known bug that I expect will be fixed in a future release.</p>
]]></description><link>https://forum.mango-os.com/post/23155</link><guid isPermaLink="true">https://forum.mango-os.com/post/23155</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Fri, 16 Aug 2019 15:02:09 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Thu, 15 Aug 2019 19:53:13 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> I have the same problem, could you solve it<br />
?</p>
]]></description><link>https://forum.mango-os.com/post/23152</link><guid isPermaLink="true">https://forum.mango-os.com/post/23152</guid><dc:creator><![CDATA[johana crisbany gamez]]></dc:creator><pubDate>Thu, 15 Aug 2019 19:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 21:06:49 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Could you export the JSON for the point and share it?</p>
</blockquote>
<p dir="auto">Since you showed me how to define values for a multistate data point, I no longer have one without a start value.</p>
]]></description><link>https://forum.mango-os.com/post/22823</link><guid isPermaLink="true">https://forum.mango-os.com/post/22823</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Tue, 23 Jul 2019 21:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 21:03:27 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">You should be able to drag and drop them on the forum's reply window, but that would upload them to imgur. So, if that's a concern, don't upload the screenshot.</p>
</blockquote>
<p dir="auto">Hmmm....  didn't work the first time I tried it.</p>
<p dir="auto"><img src="https://camo.nodebb.org/73640f049f8e80426c691252a534db4645b3ae2f?url=https%3A%2F%2Fi.imgur.com%2FQmAD0Yd.png" alt="0_1563916540857_multistate1.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="https://camo.nodebb.org/bdf218717900a57939a0a5cb327525953f9188ae?url=https%3A%2F%2Fi.imgur.com%2FLdDQRVz.png" alt="0_1563916560738_multistate2.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/22822</link><guid isPermaLink="true">https://forum.mango-os.com/post/22822</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Tue, 23 Jul 2019 21:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 21:01:09 GMT]]></title><description><![CDATA[<p dir="auto">I am fairly certain the the multistate data point was created with the legacy interface in an older version of Mango.</p>
]]></description><link>https://forum.mango-os.com/post/22821</link><guid isPermaLink="true">https://forum.mango-os.com/post/22821</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Tue, 23 Jul 2019 21:01:09 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 18:30:52 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I was able to see the issue with the no start value. I had to delete the state that was set to be the start value, then save the point. Thanks for bringing that to our attention: <a href="https://github.com/infiniteautomation/ma-modules-public/issues/53" rel="nofollow ugc">https://github.com/infiniteautomation/ma-modules-public/issues/53</a></p>
]]></description><link>https://forum.mango-os.com/post/22820</link><guid isPermaLink="true">https://forum.mango-os.com/post/22820</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 23 Jul 2019 18:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 18:23:01 GMT]]></title><description><![CDATA[<p dir="auto">You should be able to drag and drop them on the forum's reply window, but that would upload them to imgur. So, if that's a concern, don't upload the screenshot.</p>
]]></description><link>https://forum.mango-os.com/post/22819</link><guid isPermaLink="true">https://forum.mango-os.com/post/22819</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 23 Jul 2019 18:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 18:22:06 GMT]]></title><description><![CDATA[<p dir="auto">Could you export the JSON for the point and share it? How did you create a multistate virtual point without a start value?</p>
<p dir="auto"><img src="https://camo.nodebb.org/8826f79b8bec334046b8f5099703306919f850a3?url=https%3A%2F%2Fi.imgur.com%2FqPUdrKu.png" alt="0_1563906902007_exportPointNewUi.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/22818</link><guid isPermaLink="true">https://forum.mango-os.com/post/22818</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 23 Jul 2019 18:22:06 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 18:18:03 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">It may not be so intuitive, but you can define states which will appear in the drop down by hitting the enter button when typing in the "Values" field in the new UI. Using the latest released Mango, I was able to change a virtual binary point to multistate and back.</p>
</blockquote>
<p dir="auto">Indeed.  Not very intuitive.  But it does indeed work as you explain.</p>
<blockquote>
<p dir="auto">Can you share a screenshot? If I open an existing multistate point the save button is not disabled, and I don't need to change anything to be able to save it.</p>
</blockquote>
<p dir="auto">In the situation I describe, the save button is not disabled.  Clicking it results in a "Please fix errors on form before saving".  Hard to give you a screenshot, as the message clears itself in a few seconds.</p>
<p dir="auto">Edit:  To reproduce this, you would have to attempt to edit a multistate data point <em>that has no start value defined.</em></p>
<p dir="auto">Second Edit:  How do I add screenshots without making them available on a webserver?</p>
]]></description><link>https://forum.mango-os.com/post/22815</link><guid isPermaLink="true">https://forum.mango-os.com/post/22815</guid><dc:creator><![CDATA[pyeager]]></dc:creator><pubDate>Tue, 23 Jul 2019 18:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Multistate Data Point in Virtual Source on Tue, 23 Jul 2019 17:54:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi pyeager,</p>
<p dir="auto">It may not be so intuitive, but you can define states which will appear in the drop down by hitting the enter button when typing in the "Values" field in the new UI. Using the latest released Mango, I was able to change a virtual binary point to multistate and back.</p>
<blockquote>
<p dir="auto">Edit: It seems that this problem also renders already existing multistate data points as uneditable, as in this case, setting a start value is required and the same behavior prevents setting one.</p>
</blockquote>
<p dir="auto">Can you share a screenshot? If I open an existing multistate point the save button is not disabled, and I don't need to change anything to be able to save it.</p>
<blockquote>
<p dir="auto">No contextual field found for key textRenderer.textRenderer.multistateValues</p>
</blockquote>
<p dir="auto">I saw this as well, but it's unlikely to be fixed as it works in the new UI. It is attempting to complain about text renderer validation, but it looks like there's an extra <code>textRenderer.</code> in identifying where the issue is. If the text renderer were valid, I would expect it to be able to save. In the case of that message, it probably meant that no states were defined in the multistate text renderer.</p>
]]></description><link>https://forum.mango-os.com/post/22814</link><guid isPermaLink="true">https://forum.mango-os.com/post/22814</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 23 Jul 2019 17:54:33 GMT</pubDate></item></channel></rss>