Select to view content in your preferred language

WAB feature actions code ???

8884
42
Jump to solution
01-02-2018 11:41 AM
CharlesBailey
Occasional Contributor

Where does the feature actions code go in the select widget manifest? What's wrong with this? Can someone please show me a correct sample? Thanks, cob

{
"name": "Select2",
"platform": "HTML",
"version": "2.6",
"wabVersion": "2.6",
"author": "Esri R&D Center Beijing",
"description": "",
"copyright": "",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
"properties": {
"supportMultiInstance": false,

"featureActions": [{
"name": "ShowVertex",
"uri": "ShowVertexFeatureAction"
}]
}

}

0 Kudos
42 Replies
RobertScheitlin__GISP
MVP Emeritus

Cob,

 in your image above delete line 1

remove the comma after the dojo/dom in line 2

line 4 add a comma and dom after BaseWidget.

 Sorry it sounds like my use of require sent you down the wrong path.

0 Kudos
CharlesBailey
Occasional Contributor

Thanks again Robert. In my feature action code, is there a way to reference the map popup to close it (or actually move it to the top left) on execute? I tried lang.hitch(this.InfoWindow.hide()) but still can’t find the map object.( I added esri/map and dojo_base/lang to the define and functions also.)

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Cob,

  This works for me:

    onExecute: function(featureSet){
      this.map.infoWindow.hide();
    }
0 Kudos