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

Condition defaults to Good when adding tree #114

Open codergrl opened 6 years ago

codergrl commented 6 years ago

I tried adding a tree with no inspection info and the condition of that tree got filled in as Good. The condition should be left blank.

Versions: Data Collection 1.0 (12) Runtime SDK 100.3.0 (2102)

esreli commented 6 years ago

Because of a bug in the iOS Runtime SDK I have to set the condition initially to something, otherwise the pop-up won't validate and thus can't save. I will revisit this with the release of U4.

esreli commented 5 years ago

This is not an issue contained in U4. I will investigate along side the SDK team.

esreli commented 5 years ago

Documenting a bit of what i've discovered thus far.

Using: https://runtime.maps.arcgis.com/home/webmap/viewer.html?webmap=fcc7fc65bb96464c9c0986576c119a92

  1. Calling AGSPopupManager.validationError(for: field AGSField) does not throw an error for Condition.
  2. Calling AGSPopupManager.finishEditing does throw an error but does not callout Condition as the field with an error in question.
  3. According to the service definition, Condition is configured: Condition (type: esriFieldTypeString, alias: Condition, SQL Type: sqlTypeOther, length: 255, nullable: true, editable: true)
  4. Condition is configured for feature templates (though, does not implement them)

I need to interrogate this issue further.