Hello all,
I'm hoping this functionality is available in ArcGIS FieldMaps and I'm just missing where to configure it.
I have a 1:M feature layer between Sites and Inspections. I'm developing a map for field crews to go out and add new inspection records to sites. BUT, I cannot allow them to add/delete/update locations of sites.
I tried restricting editing to only allow for attribute updates, but that also removes the ability to add new related records in the inspection table.
Is this workflow possible in ArcGIS FieldMaps right now? Is it on the roadmap sometime in the near future?
Thanks!
Caitlin
This is the behavior we're seeing as well.
Found a bit of a catch 22, any form expressions on the parent layer won't fire if there was an edit on the related record. So the parent layer would need to be editable for at least attributes only. Then the user would have to edit the parent point, wait for the form calc to run, then submit the edit.
In case someone else comes across this issue and wants to deactivate editing of the parent Layer: Select the parent layer in Map Viewer and disable Editing under Properties. In Map Viewer Classics click on the three dots next under the parent layer and disable Editing
Thanks! It seems, that this option is missing for (related) tables. So I added the property manually in the map config:
"capabilities": "Query",
This doesn't quite work for the new map viewer. With this setting, editing is completely disabled for both parent and related table.
In order to edit the related table (and see the edit button) you need to have editing enabled on the parent point layer.
That being said, back to the initial post- we need the ability to add/update related records but not allow parent layer geometry edits. Currently in the new map viewer and JS 4x instant apps, I don't see this capability.
Thanks,
Amanda Huber
Alright ya'll after hours of testing this, I think I found a workaround for this issue:
Set the max length of that field to be "0" and make the field required
Now when users try to edit the parent point they are unable to and receive this error.
Alas, they are unable to enter anything into the required field because it's restricted to ZER0:
(tested in both Map Viewer and Instant Apps)
I fully acknowledge this is a super stupid workaround but it works, and solves the problem.
Ideally Esri should look into this issue, and create a workflow for those who only need related records editing (and not the points) but that's a different challenge.
Hope this helps someone out there!
Best,
Amanda Huber
I've posted this as an idea for Esri to review if it gets enough Kudos. Please up-vote if you can!
Restrict editing to related table only in Feature ... - Esri Community
Hi, I tried to use @Amanda__Huber 's workaround, but it didn't work for me.
Not ideal, and still needs improved settings around this for related records. Basically any kudos on the idea above is going to be useful, it's a critical part of the workflow for inspections data within Field Maps and other apps.
Thanks,
Heather