AnsweredAssumed Answered

Activate edit widget from query result set v2.1

Question asked by hahoangyen25 on Aug 15, 2016
Latest reply on Aug 16, 2016 by hahoangyen25

Robert Scheitlin, GISP

Hi Robert,

You helped me before with this same question for version 2.0.  Now I'm trying to upgrade my app to 2.1 and the query widget doesn't look the same anymore.  

_onResultsTableClicked function no longer exists in this new version for me to insert your codes in.

Could you please help me again ?  Sorry I'm not much of a developer.  Thank you Robert!

 

  1. /*RJS - start edits*/               
  2.               //this.map.infoWindow.show(centerPoint);  
  3.               if (this.wManager) {  
  4.                 var widgetCfg = this._getWidgetConfig('Edit');  
  5.                 if(widgetCfg){  
  6.                   this.wManager.triggerWidgetOpen(widgetCfg.id).then(lang.hitch(thisfunction(widget){  
  7.                     setTimeout(lang.hitch(thisfunction(){  
  8.                       var mpPt = feature.geometry;  
  9.                       var scrPt = this.map.toScreen(mpPt);  
  10.                       this.map.emit("click", { bubbles: true, cancelable: true, screenPoint: scrPt, mapPoint: mpPt });  
  11.                     }), 1000);  
  12.                   }));  
  13.                 }  
  14.               }  
  15. /*RJS - end Edits*/  

Outcomes