AnsweredAssumed Answered

Disable editing on Feature layer, while being able to add new related records, and edit existing related records.

Question asked by andrescastillo08 on Jun 11, 2018
Latest reply on Jun 12, 2018 by andrescastillo08

I would like to disable editing on the Feature Class completely, while being able to add new related records, and edit existing related records.

 

The structure is as follows:

·         FC

·         related to

·         Inspection History Table

·         via Parent Global ID, Global ID Data Type/Child Guid, Guid Data Type

·         relate to

·         Attachment table

·         via Parent Global ID, Global ID Data Type/Child Guid, Guid Data Type

 

These are published as a feature access service using ArcGIS server 10.4.1.

 

In the Edit Widget:

When I make the layer editable, and enable 'disable update geometry', then also make the table editable:

      This still allows me to create new points from the layer, add new related records, and edit existing related records.

When I make the layer not editable, then make the table editable:

      Neither the layer, nor the table are editable.

 

In the Smart Editor Widget:

For the FC layer:

Disable the ‘editable’ option

Enable the ‘Update Only’ and ‘Disable Geometry Editing’ options.

Leave ‘Allow Delete’ disabled

For the related Table:

Enable the ‘editable’ option,

Leave ‘Update Only’ and ‘Allow Delete’ disabled

Instruct users to either launch smart editor widget from the main popup, or if launch from the related record popup, must click ‘back’ button to add related record.

 

 

Only the Smart Editor Widget accomplished my goal of:

'I would like to disable editing on the Feature Class completely, while being able to add new related records, and edit existing related records.'

 

 

Why this difference?

 

I am on WAB DE 2.8

Outcomes