<?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: Trying to use python to insert certain attributes into a hyperlink in a field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86072#M4991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;== is an equality check&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp; is for assignment...which is what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 18:49:45 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-09-17T18:49:45Z</dc:date>
    <item>
      <title>Trying to use python to insert certain attributes into a hyperlink in a field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86071#M4990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically just trying to get python to concatenate a couple of field values into a link, specifically to get it to make a complete link to the image mate online using tax id and swis code found in said table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code: *disclaimer* I have very little experience coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parcel = "(address to my file here)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;image = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://property.tompkins-co.org/IMO/propdetail.aspx?swis=" rel="nofollow" target="_blank"&gt;http://property.tompkins-co.org/IMO/propdetail.aspx?swis=&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;mate = "&amp;amp;printkey="&lt;BR /&gt;swis = "SWIS"&lt;BR /&gt;sbl = "PRINTKEY"&lt;BR /&gt;link = "link"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with arcpy.da.UpdateCursor(parcel, [swis, sbl, link]) as cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[2] == image.string() + row[0] + mate.string() + row[1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "finished"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 11, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then a runtime error saying it can't access the file I'm trying to get it to access. Is my code OK, and it just can't access the file? Or is my code incorrect as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86071#M4990</guid>
      <dc:creator>ThomasCaruso</dc:creator>
      <dc:date>2014-09-17T18:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use python to insert certain attributes into a hyperlink in a field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86072#M4991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;== is an equality check&lt;/P&gt;&lt;P&gt;=&amp;nbsp;&amp;nbsp; is for assignment...which is what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:49:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86072#M4991</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-09-17T18:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use python to insert certain attributes into a hyperlink in a field</title>
      <link>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86073#M4992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh, I see. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trying-to-use-python-to-insert-certain-attributes/m-p/86073#M4992</guid>
      <dc:creator>ThomasCaruso</dc:creator>
      <dc:date>2014-09-17T18:52:40Z</dc:date>
    </item>
  </channel>
</rss>

