Web AppBuilder Edit Widget Tool Question

1821
3
09-16-2015 06:36 AM
MichaelWhite5
New Contributor

Hi.  We have built a web map using Web AppBuilder.  We included the Edit widget so that we could create new features in a feature class.  It works fine however, after selecting a feature tool (eg, "house") and placing a new feature, the feature tool deselects forcing the user to select it again to place the next feature (house).  Is there a way to set it so the tool stays selected?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Michael,

   If you look at the editor widgets code there is not much there it just get the layers and starts up the JS API editor dijit. The JS API editor dijit does not have any optional configuration to allow for the selected template to remain selected after the feature has been placed as the default behavior is to show the Attribute inspector for the newly created feature.

0 Kudos
MichaelWhite5
New Contributor

Thanks Robert.  Is it possible to program around this limitation?

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Michael,

  I guess it would be possible. I have not had a need to try personally. I don't know exactly what you would need to do but you could listen for the

editor.editToolbar.on('deactivate', lang.hitch(this, function(){

  //do something here to reactivate it.

}));

0 Kudos