That is correct. I solved it and posted the response above.
mike_mcwilliams
@mike_mcwilliams
0
Reputation
4
Posts
363
Profile views
0
Followers
0
Following
Posts made by mike_mcwilliams
-
RE: Raw data displays but variable will not.
-
RE: Raw data displays but variable will not.
options = {
uri: 'http://localhost:5488/api/report',
method:'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({template:{'shortid': 'ryesCEQEfD'},
data: test
}) -
Raw data displays but variable will not.
I have everything setup that if I copy the data from the console.log after data: that everything is working. As soon as I try to use a variable with that data in it I get a blank report. What could I be missing here? I tried just test and also using JSON.parse(test) and both give blank report.
//console.log(test)
var jsonText = JSON.parse(test)data ={
template:{'shortid': 'ryesCEEQfD'},
data:{jsonText},
options:{
preview:true
}