On a query result, is there a way to avoid having to use the actual column name? I have the desired column in a variable (displayColumn) which changes based on user selections. My query.outFields works fine, but I can't get the results using the variable:
query.outFields = ["ID", "STATE", displayColumn];
for (var i=0; i<numFeatures; i++) {
var graphic = fset.features;
var attr = fset.features.attributes;
// works: console.log("name: " + attr.NAME;
// fails: console.log("name: " + attr.displayColumn;
...
Thanks,Glen