<?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: Concatenate a URL followed by a Field Name Using Calculate Field in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538625#M30570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;python syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PHOTO &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'somephoto.jpg'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'DomainURL/FolderName/{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PHOTO&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# syntax line‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;yields&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'DomainURL/FolderName/somephoto.jpg'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field calculator syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'DomainURL/FolderName/{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!PHOTO!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# syntax line‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;just put exclamation marks around PHOTO in the syntax line above so that it reads ... !PHOTO!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:22:29 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-11T23:22:29Z</dc:date>
    <item>
      <title>Concatenate a URL followed by a Field Name Using Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538623#M30568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to concatenate a domain URL followed by a field name using &lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; tool. In the&amp;nbsp;&lt;STRONG&gt;Expression&lt;/STRONG&gt; field in the &lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; window, the sql expression looks like:&lt;/P&gt;&lt;P&gt;PHOTO_URL =&lt;/P&gt;&lt;P&gt;&amp;lt;a href=&lt;EM&gt;DomainURL&lt;/EM&gt;/&lt;EM&gt;FolderName&lt;/EM&gt;/&amp;amp;" "&amp;amp;!PHOTO!&amp;gt;Photo&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in the attribute table, the PHOTO_URL's values are populated as&lt;/P&gt;&lt;P&gt;&amp;lt;a href=''&lt;EM&gt;DomainURL&lt;/EM&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;EM&gt;FolderName&lt;/EM&gt;/PhotoName.jpg&lt;STRONG&gt;''''&lt;/STRONG&gt;&amp;gt;Photo&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;I get an extra " at the end of the href. When opening the map service using the arcgis online, when the PHOTO_URL atttribute is clicked, it reloads the current web URL instead of redirecting to the photo url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestions are greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538623#M30568</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-08-21T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate a URL followed by a Field Name Using Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538624#M30569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saroj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share one record from your data so that I can test the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 05:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538624#M30569</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2017-08-22T05:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate a URL followed by a Field Name Using Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538625#M30570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;python syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PHOTO &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'somephoto.jpg'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'DomainURL/FolderName/{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PHOTO&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# syntax line‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;yields&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'DomainURL/FolderName/somephoto.jpg'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field calculator syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'DomainURL/FolderName/{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!PHOTO!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# syntax line‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;just put exclamation marks around PHOTO in the syntax line above so that it reads ... !PHOTO!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538625#M30570</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T23:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate a URL followed by a Field Name Using Calculate Field</title>
      <link>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538626#M30571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response, Shantonu. The issue is resolved now.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/concatenate-a-url-followed-by-a-field-name-using/m-p/538626#M30571</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-08-22T15:12:14Z</dc:date>
    </item>
  </channel>
</rss>

