In many editing workflows, certain feature classes are designed to be created only in the context of a parent feature via a relationship.
Typical examples include:
In these cases, the child feature must always belong to a parent feature, and creating standalone features would lead to invalid or incomplete data.
Using the Editor widget in the ArcGIS Maps SDK for JavaScript 5.0, this workflow cannot be configured.
Current behavior
Assume a child layer that should only be editable through a relationship from a parent feature form.
If EditorViewModel.layerInfos.addEnabled: true:
If addEnabled: false:
layerInfos.addEnabled: true overwrites enabled: false, so trying to achieve the right configuration with the enabled-parameter does not help.
Desired behavior
There should be a way to:
Proposed enhancement
Introduce an additional configuration option in Editor.layerInfos, for example:
hideFromCreateFeaturesPanel: true
This would:
This would support common parent-child data models and help enforce data integrity by preventing the creation of orphan records while still enabling relationship-based editing workflows.
types | References | ArcGIS Maps SDK for JavaScript