• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. aosc98
    3. Topics

    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
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by aosc98

    • A

      Publisher Queries?

      User help
      • • • aosc98
      2
      0
      Votes
      2
      Posts
      460
      Views

      terrypackerT

      @aosc98 there is not a utility like that. However it would be possible to do the same type of RQL query on the publisher's table but it would require understanding the java backing code and how to access it from the script environment. I don't have the resources to currently supply you with a fully working example but if you are proficient in Java and Javascript this shouldn't be too much of a stretch to look into our public code on GitHub and figure it out. This might jumpstart some thoughts out there, and could work in Mango 3.7.x:

      //Get a reference to Common to be able to 'find' a Spring Bean var Common = Java.type('com.serotonin.m2m2.Common'); //Find the publisher dao var dao = Common.getBean(Java.type('com.serotonin.m2m2.db.dao.PublisherDao').class); var RQLUtils = Java.type('com.infiniteautomation.mango.util.RQLUtils'); //Parse RQL to ASTNode var astNode = RQLUtils.parseRQLtoAST('eq(name,Testing Publisher)'); //Query using RQL dao.rqlQuery(astNode, function(dp, row) { console.log(dp.name); });
    • A

      Edit datapoints value simultaneously

      User help
      • • • aosc98
      4
      0
      Votes
      4
      Posts
      891
      Views

      MattFoxM

      The ways I showed you there is using mangoUI within the web interface. This can be implemented from the dashboard designer.
      Assuming you are using a version 3 mango system.

      Look at the API exanples which have to be turned on via the menu settings to see what I mean.
      If you are still without a paddle give me the overall picture of what you want to achieve and I can take you through it.

      Fox