Zusammenfassung
ArcPy class that provides access to the individual cell for extended and linked properties associated with the job.
Auswertung
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
Eigenschaft | Erklärung | Datentyp |
canUpdate (Nur lesen) | 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 (Nur lesen) | The position of the field when displayed in ArcGIS Pro. | Integer |
displayType (Nur lesen) | Indicates how the user will enter information into this field in ArcGIS Pro.
| String |
domain (Nur lesen) | The name of the geodatabase domain, if a domain exists for the field. | String |
filter (Nur lesen) | 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 (Nur lesen) | The object ID of the extended property record. | Integer |
length (Nur lesen) | The field length of the extended property cell. | String |
propAlias (Nur lesen) | The alias of the extended property field that is displayed in ArcGIS Pro. | String |
propName (Nur lesen) | The name of extended property field. | String |
required (Nur lesen) | Indicates whether a value for the field is required. | Boolean |
tableListClass (Nur lesen) | 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 (Nur lesen) | 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 (Nur lesen) | The name of the field containing the value to store in the extended property field, when using a table list display type. | String |
userVisible (Nur lesen) | 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()