Forum Discussion
_anomDiebolt_
8 years agoQrew Elite
The API method API_DoQuery cannot return the XML associated with a summary report - it can only return the XML associated with a table report. What you have to do is (1) grab the XML associated with the query, (2) Convert XML to JSON, (3) using Underscore's groupBy() method to aggregate the data, (4) template the data to HTML using Mustache (or Underscore's template() method and/or POST the aggregated data to your history table.
It may sound complicated but the code is short because of the abstractions involved.
It may sound complicated but the code is short because of the abstractions involved.