<?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 Layer's Display Expression still not supported? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464565#M36383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a script that creates KMLs. It would be nice if it could set the display expression. After a little digging I came across a post that stated setting a layer's display expression is not yet supported by arcpy. Does anyone know if this is (still) true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 19:18:38 GMT</pubDate>
    <dc:creator>Emilbrundage</dc:creator>
    <dc:date>2014-01-22T19:18:38Z</dc:date>
    <item>
      <title>Layer's Display Expression still not supported?</title>
      <link>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464565#M36383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a script that creates KMLs. It would be nice if it could set the display expression. After a little digging I came across a post that stated setting a layer's display expression is not yet supported by arcpy. Does anyone know if this is (still) true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464565#M36383</guid>
      <dc:creator>Emilbrundage</dc:creator>
      <dc:date>2014-01-22T19:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Layer's Display Expression still not supported?</title>
      <link>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464566#M36384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not in the arcpy.mapping API.&amp;nbsp; It was never a requirement for map automation.&amp;nbsp; Perhaps this is something we can consider for a future release.&amp;nbsp; Please put it on the ideas web site (&lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/"&gt;http://ideas.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A possible work-around would be using comtypes - a Python module that provides access to ArcObjects from Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464566#M36384</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2014-01-23T13:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Layer's Display Expression still not supported?</title>
      <link>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464567#M36385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a work-around for this. I'm lucky in that the field that is automatically chosen as the display field (in my case, "Name") does not actually contain any useful data. Thus I can calculate this field with what I want for the KMZ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Worth noting is that I initially tried deleting the "Name" field and adding a new field that ArcMap would select as the display field. My desired field is called "P6_NBR", so I instead went with it "NAMEP6_NBR". ArcMap looks for a field with the word "Name" in it to use as its default display field. This did not work however for the KMZ creation. Even though when I check the layer's display field post-script running it shows "NAMEP6_NBR", for whatever reason the KMZ created by my script does not use this field and instead shows [no name] or something like that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 17:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-s-display-expression-still-not-supported/m-p/464567#M36385</guid>
      <dc:creator>Emilbrundage</dc:creator>
      <dc:date>2014-02-25T17:44:15Z</dc:date>
    </item>
  </channel>
</rss>

