Esri / data-collection-ios

Mobile data collection app using the iOS Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
25 stars 26 forks source link

Collect new inspection button still appears even if feature service doesn't participate in 1:M relationship #139

Closed mikewilburn closed 5 years ago

mikewilburn commented 5 years ago

This came up while testing with a custom web map which contains only a single feature layer - 59ad551de0f042f088ee99ea26321b96.

Running the app against that web map, you'll notice that identifying a tree point still includes the + button to collect a new 1:Many related record, despite the fact that the layer does not participate in a relationship. We should conditionally remove the button if no such relationship exists.

The good news is that we have pretty good error messaging for this case: image

esreli commented 5 years ago

@mikewilburn changes have been merged to master. Can you confirm the app works as expected?

mikewilburn commented 5 years ago

Verified on master that the + button no longer shows up if the identified feature does not participate in a 1-to-Many relationship.

image