I’m trying to get a chart from QuickChart by:
- Creating an array of dates (they’re all the same value but it shouldn’t matter)
- Creating a variable of the JavaScript I’m going to use to get the QuickChart
- Sending a request in JavaScript through HTTP to get the QuickChart.
When I copy paste the output of the variable (i.e. the JavaScript) into the HTTP module and run that module by itself, it works.
When I refer to the variable within the HTTP module and run the entire sequence, it works, but ONLY if the variable does not refer to the preceding array, and instead includes the raw JavaScript in full.
It does NOT work when I define the variable with the JavaScript by referring to the previous array, then refer to that variable within the HTTP module. However, again—if I copy paste the output of that variable that referred to the array into the HTTP module, it works.
It seems like it’s not syntax issue, but that the HTTP module can’t refer to the JavaScript variable, if that JavaScript variable refers to the array before it.
Not sure how to fix this, any and all help is appreciated, thank you.