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?