• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. diegoferreira

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    diegoferreira

    @diegoferreira

    0
    Reputation
    473
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    diegoferreira Unfollow Follow

    Latest posts made by diegoferreira

    • RE: Graphic View - Image Clicking

      Thanks, I´ll try this approach!

      posted in Wishlist
      D
      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?

      posted in Wishlist
      D
      diegoferreira
    • 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.

      posted in Wishlist
      D
      diegoferreira
    • 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,

      posted in Wishlist
      D
      diegoferreira