[Logo] Mango M2M Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: diegoferreira  XML
Profile for diegoferreira -> Messages posted by diegoferreira [6]
Author Message
Thanks, I´ll try this approach!
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?
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.
Hello,

Great topic, but let´s say I wanna alter other datapoint values not related to this server side script.

I tried something like:
Code:
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,
Thanks, I'll keep looking, since got no results yet.
Hello,

I'm having the same problem. Seems to be related to the necessity of signing applets with a certificate. Then the browser should ask for certificate to be accepted. Ok, got this info from:
http://issues.apache.org/activemq/browse/AMQ-1605

But I have no Idea what I should be signing =[

Any clues?
 
Profile for diegoferreira -> Messages posted by diegoferreira [6]
Go to:   
Powered by JForum 2.1.7 © JForum Team