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

906
4
06-11-2018 11:53 AM
AndresCastillo
MVP Regular Contributor

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

0 Kudos
4 Replies
AndresCastillo
MVP Regular Contributor

Any tips, Robert Scheitlin, GISP Champion ?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Andres,

   I don't know why there is a difference, but it sounds like a bug that needs to be reported to esri tech support.

AndresCastillo
MVP Regular Contributor

Thank you Robert

0 Kudos
AndresCastillo
MVP Regular Contributor

Note that I am able to replicate this same issue in AGOL WAB.

Also, In WAB DE 2.8, I am able to check the one field I want to display from the fc, then 'ok'

This works great.

But when I try to do the same in AGOL WAB, it doesn't let me hit 'ok'

The consequence of that is that the user ends up seeing a lot of fields in the fc that are unnecessary for this application, but useful for other applications.

I sure wish that the smart editor widget would honor the popup settings I configured for the fc in the web map.

0 Kudos