kirill_lykov

Editor's AttributeInspector and additional buttons

Discussion created by kirill_lykov on May 13, 2011
Latest reply on May 16, 2011 by hzhu
In order to edit featureLayer I use Editor. When I add a new feaure to the layer, I want to do some additional action on it(eg send it somewhere). So I added Save button to the AttributeInspector (editor._attributeInspector) like in the esri's example
            //Create the editor widget 
     var editorWidget = new esri.dijit.editing.Editor(params);
     
     //resize the info window (attribute inspector)
     this._mapwrapper._currentmap.infoWindow.resize(260,215);
  
     var attInspector = editorWidget._attributeInspector;
  var saveButton = new dijit.form.Button({label:"Save","class":"saveButton"});
        dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before");

        dojo.connect(saveButton, "onClick", function(event){
   //Here, I need to have date user entered
                    
        });
  
  editorWidget.startup();


The problem is I don't know how to get data user has entered in the AttributeInspector's textBoxes (attributes values). Do you know how I can get them?

Outcomes