Hi,
I'm trying to assign default attributes for newly created feature in featureService. I'm listening row created event and getting inspector of current edit template to assign value. But when feature is created for first time it doesn't assign value. After first feature is created value is getting assigned to attribute template and gets added to further features and works perfectly .
Code is as below :
protected void OnRowCreated(RowChangedEventArgs args)
{
QueuedTask.Run(() =>
{
Inspector ins = ArcGIS.Desktop.Editing.Templates.EditingTemplate.Current.Inspector;
ins["Field"] = "Some value";
ins.ApplyAsync();
});
}
Is there any way to assign value on or before creating feature first time? Any help would be appreciated.
-Prashant