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");
}
}
);
}
In other words, I am trying to create a tool where user will be able to:
1. select a record from featuretable and move the corresponding pt to map click location. This part I working great.
2. After the pt is moved, I would like attributeInspector to open so user can change a value of a column. This is where I am stuck. Any suggestions? Thank you.
Here is a sample that uses the Attribute Inspector: Using the attribute inspector | ArcGIS API for JavaScript
That might help you get some code started and if you run into issues you could post it here.