<?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 to Change the value of a data point]]></title><description><![CDATA[<p dir="auto">Hello first sorry for my bad English is not my native language but i can understand very well.<br />
I am running a SCADA project and one of the requirements from  the clients is that from a graphical view change the state of a point like from on to Off and i want to do this using scripting but i dont now very well how to start with this  if you cant send my a link to some examples i will be very grateful</p>
]]></description><link>https://forum.mango-os.com/topic/1467/how-to-change-the-value-of-a-data-point</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 15:02:25 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1467.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jan 2014 23:58:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to Change the value of a data point on Mon, 25 May 2015 03:03:35 GMT]]></title><description><![CDATA[<p dir="auto">There are lots of ways to do this.  First make sure in the data point settings you have made the modbus point settable.  Next on the graphic views add the point with one of the widgets.  You can use a simple point to start with.  Check both the Settable Override option and the display controls option.  Now when you view the graphic view and hover the mouse over the item you will see a little wrench popup to allow you to set the points value.</p>
<p dir="auto">You can also use a server side script to do all sorts of things.  Here are some example scripts that would be helpful: <a href="http://infiniteautomation.com/wiki/doku.php?id=graphics:mango_graphic_views:server_side_script_examples" rel="nofollow ugc">http://infiniteautomation.com/wiki/doku.php?id=graphics:mango_graphic_views:server_side_script_examples</a></p>
]]></description><link>https://forum.mango-os.com/post/10019</link><guid isPermaLink="true">https://forum.mango-os.com/post/10019</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Mon, 25 May 2015 03:03:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sun, 24 May 2015 23:27:46 GMT]]></title><description><![CDATA[<p dir="auto">Iam facing a problem,<br />
how to write a value through a graphical view in modbus mango</p>
]]></description><link>https://forum.mango-os.com/post/10014</link><guid isPermaLink="true">https://forum.mango-os.com/post/10014</guid><dc:creator><![CDATA[sarrah]]></dc:creator><pubDate>Sun, 24 May 2015 23:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sun, 06 Jul 2014 01:41:54 GMT]]></title><description><![CDATA[<p dir="auto">yep that worked!! thanks for that.</p>
]]></description><link>https://forum.mango-os.com/post/8740</link><guid isPermaLink="true">https://forum.mango-os.com/post/8740</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Sun, 06 Jul 2014 01:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sun, 06 Jul 2014 01:40:07 GMT]]></title><description><![CDATA[<p dir="auto">thanks for that I'll try that.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.mango-os.com/post/8739</link><guid isPermaLink="true">https://forum.mango-os.com/post/8739</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Sun, 06 Jul 2014 01:40:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sun, 06 Jul 2014 01:31:35 GMT]]></title><description><![CDATA[<p dir="auto">I was not able to reproduce the issue. Did you modify the image URL?  I'm thinking that might be the issue is that it's not finding the image.</p>
<p dir="auto">Note that if you are using Mango Automation the image URL will be like this: /modules/sstGraphics/web/graphics/Drinks/drink_empty.png</p>
<p dir="auto">Hopefully this will help.</p>
]]></description><link>https://forum.mango-os.com/post/8738</link><guid isPermaLink="true">https://forum.mango-os.com/post/8738</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Sun, 06 Jul 2014 01:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sun, 06 Jul 2014 01:18:33 GMT]]></title><description><![CDATA[<p dir="auto">Gidday Joel, I tried the above script in an attempt to have a solenoid valve that is clickable and changes colour when it changes state.<br />
Every time I hit save after I've pasted in the script the point disappears off the graphics screen, really strange. Does this indicate an error in the script?<br />
Nothing comes up in the logs.</p>
<p dir="auto">Cheers<br />
Dan</p>
]]></description><link>https://forum.mango-os.com/post/8737</link><guid isPermaLink="true">https://forum.mango-os.com/post/8737</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Sun, 06 Jul 2014 01:18:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Mon, 20 Jan 2014 20:46:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the code</p>
]]></description><link>https://forum.mango-os.com/post/8244</link><guid isPermaLink="true">https://forum.mango-os.com/post/8244</guid><dc:creator><![CDATA[eriasu]]></dc:creator><pubDate>Mon, 20 Jan 2014 20:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to Change the value of a data point on Sat, 18 Jan 2014 00:29:03 GMT]]></title><description><![CDATA[<p dir="auto">This can easily be done using a DGLux page which we have many tutorial on in this forum.<br />
<a href="http://forum.infiniteautomation.com/forum/posts/list/1310.page" rel="nofollow ugc">http://forum.infiniteautomation.com/forum/posts/list/1310.page</a></p>
<p dir="auto">Here are some example server side scripts that should do what you need on the Mango Graphic Views:</p>
<h2>//Server Side Script<br />
//Toggle on image click</h2>
<pre><code>var s = "";
if (!value)
    s += "&lt;img style='cursor:pointer;' src='/modules/sstGraphics/web/graphics/Drinks/drink_empty.png' onclick='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", \"true\");return true;'/&gt;";
else if (value)
    s += "&lt;img style='cursor:pointer;' src='/modules/sstGraphics/web/graphics/Drinks/drink.png' onclick='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", \"false\");return false;'/&gt;";
return s;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/8239</link><guid isPermaLink="true">https://forum.mango-os.com/post/8239</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Sat, 18 Jan 2014 00:29:03 GMT</pubDate></item></channel></rss>