Skip To Content

TableView properties

Resumen

The Describe function returns the following properties for Table Views. Table Properties are also supported.

A Table View returns a dataType of "TableView".

Propiedades

PropiedadExplicaciónTipo de datos
table
(Sólo lectura)

A Describe object of the table associated with the table view

Describe
fieldInfo
(Sólo lectura)

The FieldInfo object (property set) of the table

FieldInfo
whereClause
(Sólo lectura)

The table view selection where clause

String
nameString
(Sólo lectura)

The name of the table view

String

Muestra de código

TableView properties example (stand-alone script)

The following stand-alone script creates an in memory table view from a feature class. It then displays some of the properties for the table view.

import arcpy

# Create a table view from a feature class
#
arcpy.MakeTableView_management(
        "C:/data/wellingham.gdb/water/water_pipes", 
        "pipes_view")

# Create a Describe object from the table view
#
desc = arcpy.Describe("pipes_view")

# Print some table view properties
#
print "Table View Name: " + desc.nameString
print "Where Clause:    " + desc.whereClause
print "Table Name:      " + desc.name