Esri / data-assistant

ArcGIS Pro Add-in that assists in emergency management, local government and state government data aggregation workflows.
Apache License 2.0
22 stars 8 forks source link

Domain codes not properly set after reloading xml file, when different domains per subtype #205

Open MikeMillerGIS opened 7 years ago

MikeMillerGIS commented 7 years ago

Initial Mapping: image

after closing and reloading: image

Notice that the display is wrong. The value will still be calculated correctly, but the UX is bad.

To resolve:

1: When loading source and target, try matching label first, then code second, do

@JRosenfeldIntern @ChrisBuscaglia

MikeMillerGIS commented 7 years ago

For the future we should look at restructuring this to something like this, but this will break backward compatibility: image

JRosenfeldIntern commented 7 years ago

Fixed.

This was due to a for loop with a conditional statement checking the values against each other, not their tool tips containing the label. Since the conditional statement did not break after success, the map always initialized with the last option with that domain value in the drop down list.

Will go out in the next pull request.

JRosenfeldIntern commented 7 years ago

@MikeMillerGIS this was merged, can close the issue.