Something I tried too:
Code:
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.