Edit related table but not feature
BeantwortetHi,
I'm looking for an "out of the box" way to enable editing on related records to a feature, but without allowing editing of the feature itself. It seems like the only way I can add a new related record is to enable editing of the feature. Is there a way to do this through the Mobile designer?
As per the screenshot below, I want them to be able to add a new inspection record for the manhole, but not be able to edit the actual manhole. Make sense??
-
Hello?? Just wondering if what I am asking is do-able or just something that is impossible to do?
Is there anybody out there??
0 -
Hi Brian,
Unfortunately there isn't a way to do this out of the box. As soon as you disable editing of the feature, you will also lose the ability to add related records.
A solution that I can think of that involves a little bit more work would be to create a feature action that:
1. Invokes a workflow
2. In the workflow, run the "edit.display-add-related-feature" command. It isn't documented unfortunately, but you should be able to wire it up. It takes the following properties:{
"feature": [GcxFeature] The original feature from the original layer,
"relationshipId": [string] id of the relationship,
"relatedFeatureSource": the layer extension of the feature for the other layer (the related layer) that doesn't yet have a feature created yet, but that you want to create a feature for
}Jeff
2 -
Thanks Jeff. I'll give this a try.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare