Version: 10.2.1c and 10.2.1c SP3 |
ArcFM Engine Overview > ArcFM Solution Basics > Autoupdaters > Attribute Autoupdaters |
The attribute AU is a quick way to add event-based attribute updates for field data. The first requirement is to decide to which field the AU should be assigned. ArcCatalog tools can be used to select the database table containing the desired field. Right click the table and select "Properties" from the context menu to display the list of fields (on the Fields tab). Click the field name desired and note the "Data Type" (second column) and the "Domain" (lower Field Properties grid) values. These two values will be needed to define the FieldType and DomainName properties, respectively, for the AU. |
|
||||
Exiting Without ChangesWhen an attribute AU fires, MMAutoUpdater expects a value. MMAutoUpdater uses this value to change the value of the field. You may use an attribute AU to check specific criteria and, if the criteria aren’t met, exit the autoupdater without modifying the field. To do this, raise the MM_S_NOCHANGE error. This technique tells MMAutoUpdater to ignore the attribute AU and processing continues without changing the field. The sample code below demonstrates:
The example above shows a case in which the attribute autoupdater exits if ArcFM’s Feeder Manager is responsible for the edit that caused the attribute autoupdater to be executed. So if Feeder Manager is running, the attribute autoupdater will not change the value. |