AnsweredAssumed Answered

Trigger Edit  from Feature Table with row-double click

Question asked by helenchu on Aug 24, 2016
Latest reply on Aug 25, 2016 by rscheitlin

By default, row-double click will zoom to feature with popup and go to Edit from that popup.  I would like to twist the codes for it to zoom and open edit template at 1 step.  I chased down to these lines (in FeatureTable.js) but I don't know how to call the Edit widget to in here.  Your help is greatly appreciated.

 

selectFeatures: function(method, result) {
if (result && result.length > 0) {
if (method === "rowclick" || method === "selectall") {
this._setSelection(result);
} else if (method === "zoom" || method === "row-dblclick") {
this._zoomToExtentByFeatures(result).then(lang.hitch(this, function(gExtent) {
if (method !== "row-dblclick" || !this.domNode) {
return;
}
this._showMapInfoWindowByFeatures(gExtent, result);
}), lang.hitch(this, function(err) {
if (err && err.message !== 'Request canceled') {
console.error(err);
}
}));
}
this.setSelectedNumber();
} else {
this._popupMessage(this.nls.dataNotAvailable);
}
},

Outcomes