Thanks, I´ll try this approach!
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,