<?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>topic Re: ArcGIS 10.2 May I open the attribute table (only the selected features) using arc in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490810#M38408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you eibenm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, I am not intend to do after the attribute table is opened. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As user's request, I create a new arctoolbox with several script tools using python. After entering the searching criteria, a table with the selected features data need to displayed on the map in a table format. I am not sure whether I should try to open the attribute table or I should create a table on this. Any body have experience on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 00:42:59 GMT</pubDate>
    <dc:creator>LiYao</dc:creator>
    <dc:date>2014-05-07T00:42:59Z</dc:date>
    <item>
      <title>ArcGIS 10.2 May I open the attribute table (only the selected features) using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490808#M38406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to open the attribute table (only the selected features) using python, is it possible? If possible, which function should I use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 02:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490808#M38406</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-05-05T02:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 May I open the attribute table (only the selected features) using arc</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490809#M38407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What you looking to do after the attribute table is opened?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know, there is no way to open up the graphic attribute table within ArcMap using Python.&amp;nbsp; If you're looking to search though the data, what you're looking for is a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000" rel="nofollow noopener noreferrer" target="_blank"&gt;Search Cursor&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The general format looks something like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SearchCursor (in_table, field_names, {where_clause})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example of how you use it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fields = ["ID","Name","Address","City","Zip","Distance"]
query = "\"Distance\" &amp;gt; 3"

with arcpy.da.SearchCursor("FeatureLayer", fields, query) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The cursor object treats each line of your attribute table as a Python list.&amp;nbsp; So when each row is printed out, you'll see it as a list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can be more specific what you're trying to do, we can try to help with giving you some more direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490809#M38407</guid>
      <dc:creator>MattEiben</dc:creator>
      <dc:date>2021-12-11T21:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 May I open the attribute table (only the selected features) using arc</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490810#M38408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you eibenm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, I am not intend to do after the attribute table is opened. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As user's request, I create a new arctoolbox with several script tools using python. After entering the searching criteria, a table with the selected features data need to displayed on the map in a table format. I am not sure whether I should try to open the attribute table or I should create a table on this. Any body have experience on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 00:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490810#M38408</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-05-07T00:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.2 May I open the attribute table (only the selected features) using arc</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490811#M38409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you eibenm,&lt;BR /&gt;In fact, I am not intend to do after the attribute table is opened. &lt;BR /&gt;As user's request, I create a new arctoolbox with several script tools using python. After entering the searching criteria, a table with the selected features data need to displayed on the map in a table format. I am not sure whether I should try to open the attribute table or I should create a table on this. Any body have experience on this?&lt;BR /&gt;thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like what you are after is the TableView class in mapping module&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/TableView/00s300000017000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/TableView/00s300000017000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") df = arcpy.mapping.ListDataFrames(mxd, "Transportation")[0] accidentsTable = arcpy.mapping.TableView(r"C:\Project\Data\Transportation.gdb\Accidents") arcpy.mapping.AddTableView(df, accidentsTable) mxd.saveACopy(r"C:\Project\Project2.mxd") del mxd, accidentsTable&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 12:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-2-may-i-open-the-attribute-table-only/m-p/490811#M38409</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2014-05-08T12:56:56Z</dc:date>
    </item>
  </channel>
</rss>

