• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Mert
    3. Best

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

    Best posts made by Mert

    • How to get event instance data as object using Script Event Handler

      Hello everyone,

      We started exploring new scripting environment and currently trying to use Script Event Handlers instead of Set Point Event Handlers (Set To Scripted Value). We are be able to use the evt variable in global scripts with the code in below

      function myHandler(evt) {
          var point = evt.context.point;
          var pointXid = evt.context.point.xid;
          var pointTags = point.tags;
      

      But in the new Script Event Handler the evt variable returns a string. Is there a way to format evt variable into a proper object or do we need to do this in a different way in the new scripting environment?

      Thanks,
      Mert

      posted in How-To
      M
      Mert