Select to view content in your preferred language

Making of Custom Editor Widget

74
1
yesterday
SerdemGün
New Contributor

Hi Everyone,

i am trying to build a custom editor widget. What i mean by that is that i want to take parts of the Stock Editor widget and make it custom and make Components to use it in a Widget. For example i try to do DeleteEditor, AttributeEditor and MoveEditor with the help of the https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html.

My problem is after i use DeleteEditor for deleting features or AttributeEditor for editing features, i cant use the MoveEditor to drag the features and i get this error: [esri.widgets.Editor.EditorViewModel] h {name: 'editor:unable-to-start-updating', message: 'Could not begin updating the provided feature or table record.'}. Before using the other editors if i only use MoveEditor it works but after i used them i get that error message. How can i fix that and what could be the reason of that problem.

Thanks for helping

Tags (3)
0 Kudos
1 Reply
Edvinas_S
Esri Contributor

You are using 3 separate editors to edit same data. My guess is that previously used tool made some changes to the data, changed some states, added graphics/selections and the next editor has no idea about this. Which leads to errors.

Before using an editor, make sure to close other editors, so they can "release" the features they were working on.

0 Kudos