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 method to capture document and version properties - MAP_INFO #131

Closed MikeMillerGIS closed 7 years ago

MikeMillerGIS commented 8 years ago

Description: This rule will pull information from the map document or the version info of the layer edited.

Table Name: Table or Feature Class to monitor Field Name: Field to monitor to limit rule to only when field changed, if field is blank, rule is always triggered when Value Method: MAP_INFO Value Info: Field to Store Value in | Value to Store(options:AUTHOR, TITLE, NAME, PATH, VERSION)

MikeMillerGIS commented 7 years ago

@pLeBlanc93 new rule

pLeBlanc93 commented 7 years ago

When accessing properties, check the field length and truncate. EG my field has length 15 and the title is 25 characters. Only grab the first 15 instead of returning edit error.

Also restrict field type to string only.

pLeBlanc93 commented 7 years ago

VERSION option stores the SDE version you are currently working in

MikeMillerGIS commented 7 years ago

VERSION for FileGeoDatbase uses the value of FGDB

pLeBlanc93 commented 7 years ago

verified

MikeMillerGIS commented 7 years ago

Right now, the field name is the field to monitor, the first argument is the field to store the info in, does it make sense to move the first argument to the field name and not have a field to monitor? This would be more consistent with other rules.

@shoe913 @pLeBlanc93

shoe913 commented 7 years ago

Personally, I think the more consistent we can make the rules the better. Making the field name the field to update makes alo of sense.

That being said I also like having the update capability to check changes on a specific field. would it be possible to do something like this?

Table Name: Table or Feature Class to monitor Field Name: Field to Store Value in Value Method: MAP_INFO Value Info: Value to Store(options:AUTHOR, TITLE, NAME, PATH, VERSION)| Field to monitor to limit rule to only when field changed, if field is blank, rule is always triggered (optional)

pLeBlanc93 commented 7 years ago

multiple methods use field name as the triggering field:

http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#cascade-attributes http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#copy-features http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#field-trigger http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#previous-value http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#update-linked-record http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/#validate-attribute-lookup the 5 trigger AA rules

11/68

MikeMillerGIS commented 7 years ago

Well, since we are not consistent, leave as is?