We learned from the Forum that we can use mango core java call to get the datapoint value like this:
function getDataPointValueByXID(xid){
var pvd = this.pvd;
if(!pvd) {
pvd = this.pvd = com.serotonin.m2m2.Common.databaseProxy.newPointValueDao();
}
var dpid = com.serotonin.m2m2.db.dao.DataPointDao.instance.getDataPoint(xid).getId();
var returnValue = String(pvd.getLatestPointValues(dpid,1)[0].value);
return returnValue;
}
Is there a way to setDataPointValueByXid(xid) ?
Thank's !