In v4.26.5 of @ArcGIS/core, the UpdateWorkflowData class had a property called "edits". interfaces.d.t.s declared it as follows:
/**
* The [edits](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html) used to keep track of a feature being updated.
*
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#edits)
*/
edits: Edits;
But in version 4.27+, the property is gone. There's no mention of this in the breaking changes documentation, and I'm unclear on what my migration / update path should be.
I was using this property to access the feature (of type Graphic) being updated, to manipulate some of its attributes before the update workflow committed the changes to the server.
My code used to look something like this:
function save(editorVM: __esri:EditorViewModel) {
let edits = (editorVM.activeWorkflow.data as __esri.UpdateWorkflowData).edits;
edits.feature.attributes.myCustomAttribute = 'abc';
editorVM.activeWorkflow.commit();
}
Now I'm trying to find another way to manipulate those attributes before committing the update.
From the EditorViewModel I can get the SketchViewModel, which has a property for updateGraphics, which does contain the feature being edited. But when I set attributes on it, they're not included in the commit to the server.
Also from the EditorViewModel, I can get the FeatureFormViewModel, which has a feature property, which does contain the feature being edited. But again, when I set attributes on it, they're not included in the commit to the server.