Esri / local-government-desktop-addins

A series of ArcGIS Desktop Add-ins used in the ArcGIS for Local Government editing maps.
Apache License 2.0
62 stars 57 forks source link

New Rule - Validate Domains #179

Closed MikeMillerGIS closed 7 years ago

MikeMillerGIS commented 7 years ago

When a field is changed, validate its attribute values to ensure they are valid if the field has a range or coded value domain.

MikeMillerGIS commented 7 years ago

Description: This rule validates data entry on fields with domains against the domain. If the value falls outside the range or not in the coded value list, the edit is aborted.

VALUEMETHOD: VALIDATE_DOMAIN FIELDNAME: Field1, Field2, ... VALUEINFO: Nothing

Note: This rule is not valid for On_Manual

MikeMillerGIS commented 7 years ago

checked in - https://github.com/Esri/local-government-desktop-addins/commit/cfe662f2401663240794957c3c85451283ba945f

gurutvr commented 7 years ago

Hi Mike,

Let us run 'Sort Domain' GP tool on the VALUEMETHOD domain. This will help show the value methods in ascending order when the user uses this table during configuration.

Thanks, Guru

MikeMillerGIS commented 7 years ago

@guruesri ty, updated our master repo with the datasets to have a sorted domain

SASrinivas commented 7 years ago

When I populate a field with a value that is not part of the domain, I get the Field Calculator warning. When I click Yes on that dialog, the incorrect value gets populated. validate domain

MikeMillerGIS commented 7 years ago

Why would you click yes :) What value is being populated?

SASrinivas commented 7 years ago

:) out of curiosity. In the wFitting feature class, I input Testing for FITTINGTYPE and it took it.

MikeMillerGIS commented 7 years ago

I am not sure we can do much here, we are aborting the operations for each edit, somehow the field calculator is still setting the values.

MikeMillerGIS commented 7 years ago

I will move to a known issue

SASrinivas commented 7 years ago

Maybe we mention it in the doc to click No in the Field Calculator warning?? This way users know that clicking Yes will populate values outside of the Domain.

MikeMillerGIS commented 7 years ago

@pLeBlanc93 lets include this in the doc - https://github.com/Esri/local-government-desktop-addins/issues/190

pLeBlanc93 commented 7 years ago

new method documented and caution note added about yes