Thanks, I´ll try this approach!
Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
D
Latest posts made by diegoferreira
-
RE: Graphic View - Image Clicking
That is true, but even if add the "output" datapoint beside my server side script I the error persists.
The question rests... no way to do this?
-
RE: Graphic View - Image Clicking
Something I tried too:
var s = ""; var dpVO = new com.serotonin.mango.db.dao.DataPointDao(); if (value){ s += "<img style='cursor:pointer;' src='graphics/U27-12/Button/bt_On.jpg' onclick='mango.view.setPoint(" + dpVO.getDataPoint("DP_403189").getId() +", \""+ pointComponent.id +"\", \"false\");return false;'/>"; } else { s += "<img style='cursor:pointer;' src='graphics/U27-12/Button/bt_Off.jpg' onclick='mango.view.setPoint("+ dpVO.getDataPoint("DP_403189").getId() +", \""+ pointComponent.id +"\", \"true\");return true;'/>"; } return s;
I set an "input" data point as my reference datapoint, and this is my attempt to configure or set an "output" datapoint by server side script.
-
RE: Graphic View - Image Clicking
Hello,
Great topic, but let´s say I wanna alter other datapoint values not related to this server side script.
I tried something like:
s += "<a href='#' onclick='mango.view.setPoint("+ "\"DP_900421\"" +", \""+ pointComponent.id +"\", \"false\");return false;'>"
And it returns me simple error message box, with no info, and no JS error.
What should be the proper way to set other datapoint values?
Thanks,