Table View properties
Summary
The Describe function returns the following properties for table views. The Table property group is also supported.
For a table view, the Describe dataType property returns a value of "TableView".
Properties
| Property | Explanation | Data Type |
|---|---|---|
|
table (Read only) |
A |
Describe |
|
FIDSet (Read only) |
|
String |
|
fieldInfo (Read only) |
The |
FieldInfo |
|
whereClause (Read only) |
The table view selection where clause. |
String |
|
nameString (Read only) |
The name of the table view. |
String |
Code sample
Table view properties example
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.management.MakeTableView(
"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)