We have populated a dojoGrid with the search results from a feature class and now when it zooms to a selected feature in the grid it zooms and opens a blank popup but cannot figure out how to populate it. This is with the 4.3 API
grid.on("RowClick", function(evt){
console.log(results);
var idx = evt.rowIndex;
//console.log(idx);
rowData = grid.getItem(idx);
//console.log(rowData);
document.getElementById("results").innerHTML =
"You have clicked on " + rowData.SampleID + ".";
//console.log(rowData.OBJECTID);
var cnt = results[idx].extent.center;
console.log(cnt);
app.view.goTo({
center: cnt, // position:
zoom: 13
});
console.log(results[idx].feature);
app.view.popup.open({
features: results[idx].feature,
//updateLocationEnabled: true,
content: results[idx].feature.attributes,
location: cnt
});
}, true);