laptop and a wrench

Erro

In ArcGIS Maps SDK for JavaScript 4.26, the code line 'allowedWorkflows:["create-features"]' does not hide the Select button in the Editor widget when using hosted feature services based on templates.

ArcGIS Maps SDK for JavaScript
Número de ID do Erro BUG-000158528
EnviadoMay 24, 2023
Última ModificaçãoDecember 6, 2024
Aplica-se àArcGIS Maps SDK for JavaScript
Versão encontrada4.26
Sistema OperacionalWindows OS
Versão do Sistema Operacional11.0 64 bit
StatusAs Designed

Informações Adicionais

Updates were made in ArcGIS Maps SDK for JavaScript 4.26 to take into account how workflows are handled that have unupdatable features to allow interaction with attachments, since this is technically supported at the service level. Additional properties are added on the Editor's layerInfos property to take into account how attachment editing is handled. Since the underlying feature layer has attachments allowing attachment editing, set layerInfo.attachmentsOnUpdateEnabled as false on every layer with attachments so the select tool does not show. For an updated CodePen showing how to do this, refer to the following: https://codepen.io/hgonzago/pen/xxQxJrv?editors=1000. Notice the additional lines in the Editor constructor, const editor = new Editor({ view: view, allowedWorkflows: ["create-features"], layerInfos: [{ layer: featureLayer, attachmentsOnUpdateEnabled: false }] }); The documentation will be updated to be clearer on this.

Solução Provisória

In addition to setting allowedWorkflows: ["create-features"], the layerInfos property must be set and each layerInfo property must set the layer and attachmentsOnUpdateEnabled: false. If any layer used in the Editor has attachments and is not set with this property, the Select tool will display.

Etapas para Reproduzir

ID do Erro: BUG-000158528

Software:

  • ArcGIS Maps SDK for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download