The Value Method field in the DynamicValue table defines the actions that occur when the Attribute Assistant is enabled and features are modified or created in ArcMap. Four fields in the DynamicValue table (Value Method, Table Name, Field Name, and Value Info) must be configured to use an Attribute Assistant method. The remaining fields define when the Attribute Assistant method should be applied.
The following three Attribute Assistant methods can be configured in your DynamicValue table:
Method | Description |
Current Username | Populates the current user name. |
Map Info | Stores information from the current map document metadata or the version info of the layer being edited. |
Timestamp | Populates the current date and time. |
Current Username
Populates the current user name.
To configure this method, populate the following in the DynamicValue table:
Table Name | Field Name | Value Method | Value Info |
Table or feature class | Field to store the user name | CURRENT_USER | {Format} |
This rule can only be configured on String fields.
Parameters
The method parameters are as follows:
Parameter | Value | Description |
Format (Optional) | W | Full Windows login name as domain\user name |
U | Windows user name | |
D | Connected database user for the edit session | |
Null (Default) | Connected database user name if available; otherwise, full Windows login name as your domain\user name |
Examples
Stores the windows user including the domain in the LASTEDITOR field in the wLateralLine layer:
- Table Name: wLateralLine
- Field Name: LASTEDITOR
- Value Info: W
Stores the user information used to connect to an enterprise database in all layers:
- Table Name: *
- Field Name: LASTEDITOR
- Value Info: D
Map Info
Stores information from the current map document metadata or the version info of the layer being edited.
To configure this method, populate the following in the DynamicValue table:
Table Name | Field Name | Value Method | Value Info |
Table or Feature Class | The field in which the value will be stored | MAP_INFO | Property Type|{Field to Monitor} |
This rule can only be configured on text fields.
Parameters
The method parameters are as follows:
Parameter | Value | Description |
Property Type | AUTHOR | The map document author. |
NAME | The map document name (filename without extension). | |
PATH | The map document path (folder containing the map document). | |
TITLE | The map document title. | |
VERSION | The version name of the layer being edited. When editing a non-versioned dataset, FGDB will be stored. |
|
Field to Monitor (Optional) | Field name | The field to monitor for changes. |
Examples
Stores the author from the map document properties in the AUTH field in the ProposedSites layer:
- Table Name: ProposedSites
- Field Name: AUTH
- Value Info: AUTHOR
Stores the workspace version of the ProposedSites layer whenever a value in the LASTEDITOR field is changed:
- Table Name: ProposedSites
- Field Name: AUTH
- Value Info: VERSION|LASTEDITOR
Timestamp
Populates the current date and time.
To configure this method, populate the following in the DynamicValue table:
Table Name | Field Name | Value Method | Value Info |
Table or feature class | Date or string field | TIMESTAMP | {Format} |
This rule can only be configured on String fields if you select the YEAR, DAY, or MONTH parameters.
Parameters
The method parameters are as follows:
Parameter | Value | Description |
Format (Optional) | <Null> (Default) |
Use the current date and time. |
DATE | Date only. | |
TIME | Time only in 12-hour format. | |
TIME24 | Time only in 24-hour format. | |
DAY | Day only. | |
MONTH | Month only. | |
YEAR | Year only. | |
CUSTOM | Specify format; for example, hh:mm:ss tt = 09:30:00 AM, MMMM = Month in text, such as March, and HH = Hour of the day, such as 23. |
Examples
Stores the current date and time in the EDITDATE field in the wLateralLine layer:
- Table Name: wLateralLine
- Field Name: EDITDATE
-
Value Info:
<Null>
Stores the current date in all layers:
- Table Name: *
- Field Name: EDITDATE
- Value Info: DATE
Stores the current date in long time (for example, Monday, June 15, 2009):
- Table Name: wLateralLine
- Field Name: EDITDATE
- Value Info: dddd, MMMM dd, yyyy