<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Add property to table objects determining if they are a view or not in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-property-to-table-objects-determining-if-they/idi-p/1616444</link>
    <description>&lt;P&gt;Related: &lt;A href="https://community.esri.com/t5/python-questions/how-to-determine-if-the-item-in-geodatabase-is-a/td-p/1615769/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;How to Determine if the item in geodatabase is a view or not?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/catalog-add-view-icon/idi-p/1527997" target="_blank" rel="noopener"&gt;Catalog: Add view icon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is no way in arcpy to determine if an object is a view or a real table, or, for that matter, no easy way period to tell if an object is a view or not, even in Catalog.&lt;/P&gt;&lt;P&gt;Adding an &lt;EM&gt;isView()&lt;/EM&gt; property would make things very easy; we would not have to resort to checking if the table is editable (error-prone) or using a naming convention ("recent_nests_VIEW") to verify our inventory of tables.&lt;/P&gt;&lt;P&gt;Please add some sort of property to Describe to let us do this.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 03:24:44 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2025-08-28T03:24:44Z</dc:date>
    <item>
      <title>Add property to table objects determining if they are a view or not</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-property-to-table-objects-determining-if-they/idi-p/1616444</link>
      <description>&lt;P&gt;Related: &lt;A href="https://community.esri.com/t5/python-questions/how-to-determine-if-the-item-in-geodatabase-is-a/td-p/1615769/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;How to Determine if the item in geodatabase is a view or not?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/catalog-add-view-icon/idi-p/1527997" target="_blank" rel="noopener"&gt;Catalog: Add view icon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is no way in arcpy to determine if an object is a view or a real table, or, for that matter, no easy way period to tell if an object is a view or not, even in Catalog.&lt;/P&gt;&lt;P&gt;Adding an &lt;EM&gt;isView()&lt;/EM&gt; property would make things very easy; we would not have to resort to checking if the table is editable (error-prone) or using a naming convention ("recent_nests_VIEW") to verify our inventory of tables.&lt;/P&gt;&lt;P&gt;Please add some sort of property to Describe to let us do this.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 03:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-property-to-table-objects-determining-if-they/idi-p/1616444</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-08-28T03:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add property to table objects determining if they are a view or not</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-property-to-table-objects-determining-if-they/idc-p/1617248#M35643</link>
      <description>&lt;P&gt;Huh, I've never really used views and usually just use layer definition queries. Seems like a useful feature if it was made clear that a view is defined by a query. The view definition is even transparent to da.Describe. It lists the View as a `DEFeatureClass` and not a&lt;/P&gt;&lt;P&gt;You can see that a featureclass is a view if you open the properties, but that means there is an internal API that can tell that it's a view.&lt;/P&gt;&lt;P&gt;To add to this proposal, there should be a subtype of `DEFeatureClass`/`DETable` called `DEFeatureView`/`DETableView` or something similar. These types should have a definition property that clarifies the type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes to arcpy/typing/describe/base.pyi:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;class Table(TableBase, EditorTracking): ...
class FeatureClass(FeatureClassBase, EditorTracking): ...

+ class TableView(Table):
+     @property
+     def definition(self) -&amp;gt; str:
+         """The SQL Definition of the TableView"""
+         
+ class FeatureClassView(FeatureClass):
+     @property
+     def definition(self) -&amp;gt; str:
+         """The SQL Definition of the FeatureClassView"""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes to /arcpy/typing/describe/__init__.py&lt;/P&gt;&lt;LI-CODE lang="python"&gt;... 
DescribeDataTypes: TypeAlias = Literal[
     ...
     "VPFTable",
     "Workspace",
+    "TableView",
+    "FeatureClassView",
 ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the code that interfaces with the View is not part of the public API currently, just adding this here and still treating the View as a `DEFeatureClass`/`DETable` internally should be very backwards compatible while allowing developers to quickly retrieve the View definitions. Because the View definition isn't editable anyways, keeping the definition property R/O is fine, this will just allow tools that pull an old definition, update the query, and replace the View with a new View.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 20:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-property-to-table-objects-determining-if-they/idc-p/1617248#M35643</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-05-21T20:06:58Z</dc:date>
    </item>
  </channel>
</rss>

