<?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: Reorder Fields in a TableView Using Python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228573#M7905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eliza,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran across this script by Chris Snyder a while back, it might work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=16771"&gt;http://arcscripts.esri.com/details.asp?dbid=16771&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 21:12:36 GMT</pubDate>
    <dc:creator>JoelCalhoun</dc:creator>
    <dc:date>2010-07-19T21:12:36Z</dc:date>
    <item>
      <title>Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228572#M7904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a python script that will create a table view from the attribute table of a shapefile and then export it as .dbf file. I wrote a script that does exactly that but I also need to order the fields in the .dbf file in a certain order that does not match the input shapefile. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I do this???? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcMap 9.3.1 with ArcView permissions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eliza Ledwell&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 20:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228572#M7904</guid>
      <dc:creator>ElizaLedwell</dc:creator>
      <dc:date>2010-07-19T20:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228573#M7905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eliza,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran across this script by Chris Snyder a while back, it might work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=16771"&gt;http://arcscripts.esri.com/details.asp?dbid=16771&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 21:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228573#M7905</guid>
      <dc:creator>JoelCalhoun</dc:creator>
      <dc:date>2010-07-19T21:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228574#M7906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's two different methods to reorder fields via Python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add some dummy fields, calc over the values (FIELD1_DUMMY = FIELD1_ORIG), delete the original fields, add the fields you want in the order you want, calc over the values (FIELD1_ORIG = FIELD1_DUMMY), then delete the dummy fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Build a blank&amp;nbsp; table, add the fields you want to retain in the order you want, then run the append tool to append the original records into the blank table with the reordered fields. As long as the field names/types are exactly the same, use the NO_TEST option, otherwise you have to use the ugly field mapping object which is a real pain.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 21:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228574#M7906</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-07-19T21:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228575#M7907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you know the specific order you want your output table items to be you can manually order the items in your code with the FeatureClasstoFeatureClass tool.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the proper syntax I recommend setting up the tool in Modelbuilder and exporting it to Python.&amp;nbsp; Then simply reorder the fields in the Python code manually.&amp;nbsp; Your output will be a new shp with your reordered fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 22:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228575#M7907</guid>
      <dc:creator>JoelCalhoun</dc:creator>
      <dc:date>2010-07-19T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228576#M7908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it! Thank you for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 14:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228576#M7908</guid>
      <dc:creator>ElizaLedwell</dc:creator>
      <dc:date>2010-07-20T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228577#M7909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to write a python script that will create a table view from the attribute table of a shapefile and then export it as .dbf file. I wrote a script that does exactly that&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eliza,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw your post and I am trying to do exactly what you said you had created; creating a table view from a shapefile and exporting as a .dbf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you maybe share a snippet of your code of how you did that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 23:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228577#M7909</guid>
      <dc:creator>BobRoberts</dc:creator>
      <dc:date>2010-08-04T23:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder Fields in a TableView Using Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228578#M7910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bob, this is what you want to use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006v000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006v000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 22:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/reorder-fields-in-a-tableview-using-python/m-p/228578#M7910</guid>
      <dc:creator>RyanKelley</dc:creator>
      <dc:date>2010-08-11T22:18:28Z</dc:date>
    </item>
  </channel>
</rss>

