ExtendedPropertyValue

Zusammenfassung

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

Diskussion

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.

Eigenschaften

EigenschaftErläuterungDatentyp
canUpdate
(Schreibgeschützt)

Indicates whether the cell is editable and can be updated.

Boolean
data
(Lesen und schreiben)

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

Variant
displayOrder
(Schreibgeschützt)

The position of the field when displayed in ArcGIS Pro.

Integer
displayType
(Schreibgeschützt)

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
(Schreibgeschützt)

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

String
filter
(Schreibgeschützt)

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
(Schreibgeschützt)

The object ID of the extended property record.

Integer
length
(Schreibgeschützt)

The field length of the extended property cell.

String
propAlias
(Schreibgeschützt)

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

String
propName
(Schreibgeschützt)

The name of extended property field.

String
required
(Schreibgeschützt)

Indicates whether a value for the field is required.

Boolean
tableListClass
(Schreibgeschützt)

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
(Schreibgeschützt)

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
(Schreibgeschützt)

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

String
userVisible
(Schreibgeschützt)

Indicates whether the property is visible in ArcGIS Pro.

Boolean

Codebeispiel

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()