ExtendedPropertyValue

Synthèse

ArcPy class that provides access to the individual cell for extended and linked properties associated with the job.

Discussion

Extended and linked properties store business-specific information as part of the job that is not covered by the default job properties. Extended properties have one-to-one (1-1) cardinality, and there is one set of properties associated with the job. Linked properties have one-to-many (1-many) cardinality, and there are zero or more sets of properties associated with the job. Extended and linked properties are stored in a nonsystem geodatabase table in the Workflow Manager (Classic) repository.

Propriétés

PropriétéExplicationType de données
canUpdate
(Lecture seule)

Indicates whether the cell is editable and can be updated.

Boolean
data
(Lecture et écriture)

The value (string, integer, or date) of the extended property cell.

Variant
displayOrder
(Lecture seule)

The position of the field when displayed in ArcGIS Pro.

Integer
displayType
(Lecture seule)

Indicates how the user will enter information into this field in ArcGIS Pro.

  • defaultDisplay type is based on the type of field added to the extended property table.
  • textText value entered in a text box.
  • dateDate value typed or entered using the date picker.
  • domainSelect value from geodatabase domain presented in a drop-down list.
  • fileBrowse for a file and store file path as the value.
  • geodatasetBrowse for a geodataset and store its path as the value.
  • folderBrowse for a folder and store its path as the value.
  • tablelistSelect a value from a list of values in a table other than system table in the Workflow Manager (Classic) database.
  • multi-level-tablelistSelect a value from a list of values in a table that further filters the values in the next field from the same table.
String
domain
(Lecture seule)

The name of the geodatabase domain, if a domain exists for the field.

String
filter
(Lecture seule)

In ArcGIS Pro when using a file browser to enter information, this filter will limit the types of files that are presented for selection.

String
ID
(Lecture seule)

The object ID of the extended property record.

Integer
length
(Lecture seule)

The field length of the extended property cell.

String
propAlias
(Lecture seule)

The alias of the extended property field that is displayed in ArcGIS Pro.

String
propName
(Lecture seule)

The name of extended property field.

String
required
(Lecture seule)

Indicates whether a value for the field is required.

Boolean
tableListClass
(Lecture seule)

The name of the geodatabase table containing the list of values displayed in a drop-down list for selection, when using a table list display type.

String
tableListDisplayField
(Lecture seule)

The name of the field containing the value to be displayed in a drop-down list for selection, when using a table list display type.

String
tableListStoreField
(Lecture seule)

The name of the field containing the value to store in the extended property field, when using a table list display type.

String
userVisible
(Lecture seule)

Indicates whether the property is visible in ArcGIS Pro.

Boolean

Exemple de code

The following script updates the values for extended property cells.

import arcpy


#Establish a connection to a Workflow database
conn = arcpy.wmx.Connect(r'c:\test\Workflow.jtc')

#Access a Workflow Job with extended properties
job = conn.getJob(99999)

#Get the extended properties table associated with the job
prop_table = job.getExtendedPropertyTable('wmx.extra_properties')

#Update value of extended property fields
prop_table['parcel_number'].data=12345
prop_table['requestor_name'].data='Planning Commission'
prop_table['request_date'].data=datetime.datetime(2015, 4, 30, 12, 30, 45)
job.save()