Activate edit widget from query result set v2.1

1151
2
Jump to solution
08-15-2016 08:07 AM
Hoang_YenHa
New Contributor II

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*/  
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Hoang,

  Sure it exists. It is in the SingleQueryResults.js file.

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Hoang,

  Sure it exists. It is in the SingleQueryResults.js file.

Hoang_YenHa
New Contributor II

Thanks a bunch Robert!  I only searched for it in widget.js like before.

0 Kudos