I am running a couple queries which are returning results to a Grid as seen below.
Everything works great....But now I want to push those results into some sort of exportable/viewable report. Maybe a PDF export that can be downloaded. How can I do this and format the report?
Has anyone tackled this and have some advise or examples?
Thanks and happy new year
var query_troutreach = new Query();
query_troutreach.geometry = bufferGeometry;
flVAFWIS_troutreach.selectFeatures(query_troutreach, FeatureLayer.SELECTION_NEW, function(results){
});
flVAFWIS_troutreach.queryFeatures(query_troutreach, function (featureSet) {
updateGrid_troutreach(featureSet);
});
function updateGrid_troutreach(featureSet) {
var data = arrayUtils.map(featureSet.features, function (entry, i) {
return {
Waterbody: entry.attributes.Waterbody,
id: entry.attributes.OBJECTID,
Comments: entry.attributes.Comments
};
});
// If you use a store...
dataStore = new Memory({
"data": data,
"idProperty": "id"
});
gridNoColumnSets_troutreach.set("store", dataStore);
gridNoColumnSets_troutreach.startup();