<?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: I want to be able to enter a persons name into my combox so as to select it in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119936#M9424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to enter a value in the combo box, search through all the attribute tables within all the layers of your MXD, and then select the layer that contains the value within it's attribute table?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 19:39:08 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2012-08-27T19:39:08Z</dc:date>
    <item>
      <title>I want to be able to enter a persons name into my combox so as to select it</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119935#M9423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to be able to enter a persons name into my combox so as to select it within my active view, this is the code i use which only shows my layers within my data frame; i want to be able to key-in a particular attribute i.e name so as to select the feature with this attribute in my active view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def onFocus(self, focused):

&amp;nbsp; # When the combo box has focus, update the combo box with the list of layer names.
 if focused:
&amp;nbsp; self.mxd = arcpy.mapping.MapDocument('current')
&amp;nbsp; layers = arcpy.mapping.ListLayers(self.mxd)
&amp;nbsp; self.items = []
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for layer in layers:
&amp;nbsp; self.items.append(layer.name)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Your suggestions would be highly appreciated. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 04:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119935#M9423</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-27T04:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: I want to be able to enter a persons name into my combox so as to select it</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119936#M9424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to enter a value in the combo box, search through all the attribute tables within all the layers of your MXD, and then select the layer that contains the value within it's attribute table?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119936#M9424</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-08-27T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: I want to be able to enter a persons name into my combox so as to select it</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119937#M9425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks i got it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 05:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-be-able-to-enter-a-persons-name-into-my/m-p/119937#M9425</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-29T05:30:43Z</dc:date>
    </item>
  </channel>
</rss>

