Wondering if anybody knows why I can't get this data into a table?
This is my query:
var dataObjects = []
var errors = "";
function runQuery(i) {
if (i >= jsonEditor1.value.length) {
console.log("Finished running all queries with output", dataObjects);
return dataObjects
}
console.log("i:", i)
multiAddressSummary.trigger({
additionalScope: {i: i},
onSuccess: function (data) {
dataObjects.push(data)
runQuery(i+1)
},
onFailure: function (error) {
errors += "Found error at line" + i.toString() + ": " + error + "\n\n";
runQuery(i+1)
}
})
}
runQuery(0)
However, my table says that the data from the query is NULL. How do I get it to return the right data?