<?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: python - label from a related table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138579#M10837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably what you're looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def findLabel(relatefieldoflayer):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strWhereClause = '"&amp;amp;RelateFieldOfTable&amp;amp;" = \'{0}\''.format(relatefieldoflayer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strpTable = &amp;amp;PathToRelatedTable&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.SearchCursor(strpTable, &amp;amp;LableField&amp;amp;, strWhereClause)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLabel = str(row[0])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result += strLabel + "\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.rstrip()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 14:00:44 GMT</pubDate>
    <dc:creator>ThomasStanley-Jones</dc:creator>
    <dc:date>2014-07-25T14:00:44Z</dc:date>
    <item>
      <title>python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138576#M10834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 5px 0; color: #404040; font-family: arial, sans-serif; font-size: 14px;"&gt;Anyone know how to label from a related table in python?&lt;/P&gt;&lt;P style="margin: 5px 0; color: #404040; font-family: arial, sans-serif; font-size: 14px;"&gt;I figured out how to using VBScript form here: &lt;A href="https://gisnuts.com/terra/blog/2012/05/16/label-features-with-attributes-from-related-records" style="color: #5b92fa;"&gt;https://gisnuts.com/terra/blog/2012/05/16/label-features-with-attributes-from-related-records&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 5px 0; color: #404040; font-family: arial, sans-serif; font-size: 14px;"&gt;Cannot figure it out in python.&lt;/P&gt;&lt;P style="margin: 5px 0; color: #404040; font-family: arial, sans-serif; font-size: 14px;"&gt;If it can be done in VBScript I am hoping that means it can be accomplished in Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 20:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138576#M10834</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2014-07-24T20:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138577#M10835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s800000027000000"&gt;examples of label expression using python&lt;/A&gt; in the help files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 12:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138577#M10835</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-07-25T12:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138578#M10836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for taking time to review and respond.&amp;nbsp; Yes, you are correct, it will take using an advanced expression.&amp;nbsp; If you click on my link you will see an example of it in VBScript.&amp;nbsp; What I cannot figure out is how to write that same advance expression in python. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 12:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138578#M10836</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2014-07-25T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138579#M10837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably what you're looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def findLabel(relatefieldoflayer):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strWhereClause = '"&amp;amp;RelateFieldOfTable&amp;amp;" = \'{0}\''.format(relatefieldoflayer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strpTable = &amp;amp;PathToRelatedTable&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.SearchCursor(strpTable, &amp;amp;LableField&amp;amp;, strWhereClause)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLabel = str(row[0])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result += strLabel + "\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.rstrip()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138579#M10837</guid>
      <dc:creator>ThomasStanley-Jones</dc:creator>
      <dc:date>2014-07-25T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138580#M10838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is it.&amp;nbsp; Thank you!&amp;nbsp; Just one minor thing in case someone else is looking to do this, the f in FindLabel should be a capital F.&amp;nbsp;&amp;nbsp; Also when filling in the spots relatefieldoflayer and PathToRelatedTable don't forget your " " and [ ]s!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel( [relatefieldoflayer] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strWhereClause = '"RelateFieldOfTable" = \'{0}\''.format([relatefieldoflayer])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strpTable = "PathToRelatedTable"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.SearchCursor(strpTable, "LableField", strWhereClause)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLabel = str(row[0])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result += strLabel + "\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.rstrip()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138580#M10838</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2014-07-25T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138581#M10839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/12263"&gt;matthew driscoll&lt;/A&gt;‌ &amp;amp; &lt;A href="https://community.esri.com/migrated-users/30116"&gt;Thomas Stanley-Jones&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gentlemen, thank you both for your posts.&amp;nbsp; You've pushed me along toward that dubious nirvana of labeling features with relates.&amp;nbsp; I'm Python-deficient at present, and have a need to label a point feature based on a table that is two relates away:&amp;nbsp; Facility (point) has Space (table) has Tenant (table).&amp;nbsp; Your code fired right off after I shortened my table path, so I have Facility (point) has Space (table) no worries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an awesome Python reference that you know of that has examples of traversing multiple relates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Edit&lt;/EM&gt;: &lt;/STRONG&gt;&lt;/SPAN&gt; I'm stunned.&amp;nbsp; I believe I just hacked my way into some nested cursors that did the trick.&amp;nbsp; I'm quite positive it's not optimized, but it works.&amp;nbsp; Now I'm just into the joy of retrieving domain descriptions so I'm not labeling my points with useful info like "3, 8, 2, 6"&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, thanks for the kick start, guys.&amp;nbsp; I hope you're off enjoying your weekends early.&amp;nbsp; On that note, I'd best lean back on some laurels and maybe slide on out of here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14111667281266468 jive_text_macro" jivemacro_uid="_14111667281266468" modifiedtitle="true"&gt;
&lt;P&gt;def FindLabel( [GlobalID] ):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; strSpaceTable = "C:\Facility.gdb\Space"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; strTenantTable = "C:\Facility.gdb\Tenant"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; strSpaceWhereClause = '"FacilityID" = \'{0}\''.format([GlobalID])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; spacecursor = arcpy.da.SearchCursor(strSpaceTable, "GlobalID", strSpaceWhereClause)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for row in spacecursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spaceGlobalID = str(row[0])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strTenantWhereClause = '"SpaceID" = \'{0}\''.format(spaceGlobalID)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tenantcursor = arcpy.da.SearchCursor(strTenantTable, "Org3Acronym", strTenantWhereClause)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tenantresult = ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in tenantcursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLabel = str(row[0])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tenantresult += strLabel + "\n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tenantresult&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return tenantresult.rstrip()&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138581#M10839</guid>
      <dc:creator>TimMinter</dc:creator>
      <dc:date>2014-09-19T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138582#M10840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So Im a way less advanced (fly by my seat) python scripter. I used the code sample above and am recieving the following error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error 0 on line 0. &lt;/P&gt;&lt;P&gt;Error Running expression: FindLabel()&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;file "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;NameError: name 'FindLabel' is not defined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my code, Im trying to pull the attributes from an MSExcel sheet: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel (&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return def FindLabel ([OID]):&lt;/P&gt;&lt;P&gt;&amp;nbsp; strWhereClause = "TunnelRoomOID" = \'{0}\".format([OID])&lt;/P&gt;&lt;P&gt;&amp;nbsp; strTable = "Z:\Maps\Tunnels\2015 Tunnel Asset Review - Historic Documents\Tunnel_DifficultAccessType_Table2015.xlsx\'Room Definitions$'"&lt;/P&gt;&lt;P&gt;&amp;nbsp; cursor = arcpy.da.SearchCursor(strpTable, "DifficultAccessTypeCode", strWhereClause)&lt;/P&gt;&lt;P&gt;&amp;nbsp; result = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp; for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp; strLabel = str(row[0])&lt;/P&gt;&lt;P&gt;&amp;nbsp; result += strLabel + "\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp; return result.rstrip()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attemted to use the VB example above, it was verified as correct but didnt return a label sample. Not sure what Im doing wrong &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138582#M10840</guid>
      <dc:creator>JacquelineAlessi</dc:creator>
      <dc:date>2015-03-18T17:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138583#M10841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS The table is not related vis Joins and Relates, it is only being related via the script. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138583#M10841</guid>
      <dc:creator>JacquelineAlessi</dc:creator>
      <dc:date>2015-03-18T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138584#M10842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Warning, I too am not very advanced.&amp;nbsp; Also, I used this in the field calculator, not inside one of my scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, &lt;EM&gt;I t&lt;/EM&gt;&lt;EM&gt;hink&lt;/EM&gt; there are different rules on when to use " "&amp;nbsp; or&amp;nbsp; [ ] depending on the type of file.&amp;nbsp; Where I am calling for a feature class in a database you are using an xlsx table.&amp;nbsp; ?? I hope this helps some&amp;nbsp; ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ([OID]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;strWhereClause = "OID" = \'{0}\".format([OID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Instead of this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel (&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return def FindLabel ([OID]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;strWhereClause = "TunnelRoomOID" = \'{0}\".format([OID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138584#M10842</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2015-03-18T17:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: python - label from a related table</title>
      <link>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138585#M10843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It actually didnt make any difference in regards to the error that Im recieving I still get a 'FindLabel' is not defined. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 18:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-from-a-related-table/m-p/138585#M10843</guid>
      <dc:creator>JacquelineAlessi</dc:creator>
      <dc:date>2015-03-18T18:05:56Z</dc:date>
    </item>
  </channel>
</rss>

