AnsweredAssumed Answered

applyEdits and AttributeInspector

Question asked by bchepuri on Nov 16, 2015
Latest reply on Nov 19, 2015 by sarahclark

I am trying to move a point of featureservice based on user click but lost on how to use attributeInspector to update a field value for that point.

 

Any ideas or suggestions?  Thank you in advance.

 

map.on("click", function(evt){

     if (functionMode == "3"){

    

      var selFeatures = flAddressPoints.getSelectedFeatures();

      var targetGraphic = selFeatures[0].setGeometry(evt.mapPoint);

      flAddressPoints.applyEdits(null,[targetGraphic],null,function(feature){      

             });

     } else if (functionMode == "1") {
   

     alert("aaa");
    
     } else {
    
     //alert("bbb");
     }
    }

    );            
  }

Outcomes