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

Javascript variable from scriptPoint "value"


  • I'm working on some custom views that need the current value of a particular datapoint available as a JS variable. If I declare the variable in my JS header info, and then try to update using the form:

    var x = value;

    within the script section of the scriptPoint tag, this doesn't update the previously declared JS variable (even though "value" is functional and clearly available based on other tests). Is there a straightforward method of achieving this? It doesn't have to utilize the scriptPoint function. If this isn't possible currently, is there a way to do this through a global script?

    Thanks,
    Craig