• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Prayol
    3. Posts

    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
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Open graphical representation when you click a Script for the server

      @phildunlap

      SHOW !!!! Thank you, Thank you, Thank you.

      posted in User help
      P
      Prayol
    • RE: Open graphical representation when you click a Script for the server

      @phildunlap
      Your help, I have already been very helpful. I do not want to be inopportune, but by putting it this way: (var s = "<div> <onclick = " window.location.href = 'http: // localhost: 8080 / ScadaBR / views.shtm? ViewId = 8' ; \ "> <\ div>";) - I lose the click and redirect function. thankful

      posted in User help
      P
      Prayol
    • RE: Open graphical representation when you click a Script for the server

      @phildunlap said in Open graphical representation when you click a Script for the server:

      var s = "<button onclick="window.location.href = 'http://localhost:8080/view_edit.shtm?viewId=1';">";

      Thank you my friend. It worked! Now I'm just taking the button shape that was created around the chart to look perfect! It's possible ?

      posted in User help
      P
      Prayol
    • RE: Open graphical representation when you click a Script for the server

      @phildunlap said in Open graphical representation when you click a Script for the server:

      Have you tried a <script> tag that changes the window.location ?

      I tried this way: onclick = 'javascript: window.location.href =' http: // localhost: 8080 / ScadaBR / views.shtm? ViewId = 5 ";
      The problem, that is JavaScript is not my native language, so it is not a will and I do not know if it is correct what I did.

      posted in User help
      P
      Prayol
    • RE: Open graphical representation when you click a Script for the server

      @phildunlap Hello phildunlap, thanks for the help.
      See, I use a variation of Mango here in Brazil called ScadaBR. As for DAO, it is working correctly in this variation. My problem is that I'm not sure how to insert the redirect after a click into the server script. I have to direct the user to this representation: views.shtm? ViewId = 8, how do I? I can not do it alone. Thank you

      posted in User help
      P
      Prayol
    • Open graphical representation when you click a Script for the server

      Good morning gentlemen,
      please need to direct the user to a graphical representation after clicking on a graph created by the script for the server through onclick. Someone to help. Thank you.

      My code:

      var dpDao = new com.serotonin.mango.db.dao.PointValueDao();
      var dpVo = dpDao.getLatestPointValue('78');
      var s = "";
      
      if (dpVo.value=="true")
      
       s += "<img style='cursor:pointer;' src='graphics/Leds48/led48_green_1.png' onclick='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", \"false\");return false;'/>";
      
      else
      
      s += "<img style='cursor:pointer;' src='graphics/Leds48/led48_white_0.png' onclick='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", \"true\");return false;'/>";
      
      return s;
      
      posted in User help
      P
      Prayol