<?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>idea Hyperlink Field — Replace spaces with URL-encoded value “%20” in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idi-p/1332646</link>
    <description>&lt;P&gt;Oracle 18c 10.7.1 EGDB:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This isn't my area of expertise; I'm posting this idea because it's an issue my organization dealt with recently. I'll try to explain it as well as I can.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a FC that has a FILE_URL field. The values in the field are URLs to on-prem files, such as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://a.b.c.on.local/DRAWINGS/" target="_blank" rel="noopener"&gt;http://a.b.c.on.local/DRAWINGS/&lt;/A&gt;&lt;STRONG&gt;A123&lt;/STRONG&gt;.PDF&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://a.b.c.on.local/DRAWINGS/" target="_blank" rel="noopener"&gt;http://a.b.c.on.local/DRAWINGS/&lt;/A&gt;&lt;STRONG&gt;B 123&lt;/STRONG&gt;.PDF&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;Identify tool:&lt;/P&gt;&lt;P&gt;In a web map, when using the identify tool, URL #1 works as a clickable hyperlink because the file name doesn't have spaces. But URL #2 is not a clickable hyperlink, it's just plain text because the file name has a space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attribute Table widget:&lt;/P&gt;&lt;P&gt;Additionally, while URL #2 is technically a hyperlink in the Attribute Table widget, the hyperlink is broken/incorrect:&amp;nbsp;&lt;A href="http://a.b.c.on.local/DRAWINGS/B" target="_self"&gt;http://a.b.c.on.local/DRAWINGS/B&lt;/A&gt; &lt;FONT color="#FF0000"&gt;123.PDF&lt;/FONT&gt;. The hyperlink incorrectly excludes the portion of the URL that comes after the space in the hyperlink.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;We can workaround the identify window issue by using an&amp;nbsp;Attribute Expression (Arcade) to replace spaces with “%20”:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;return Replace($feature["FILE_URL"]," ","%20")&lt;/PRE&gt;&lt;P&gt;However, that expression doesn't get applied in the Attribute Table, so the Attribute Table hyperlink is still broken.&lt;/P&gt;&lt;P&gt;We might have the option to work around this issue in the &lt;EM&gt;underlying data&lt;/EM&gt;&amp;nbsp;(by &lt;SPAN&gt;replacing spaces with “%20” in a field)&lt;/SPAN&gt;:&lt;/P&gt;&lt;OL class="lia-list-style-type-upper-alpha"&gt;&lt;LI&gt;Use a calculation attribute rule to populate an additional field in the FC&lt;/LI&gt;&lt;LI&gt;Or use a calculated SQL field in a database view (note: layers based on database views are read-only/uneditable)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;However, those workarounds add unwanted complexity.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Idea:&lt;/P&gt;&lt;P&gt;Could OOTB functionality be added to the web map that automatically replaces&amp;nbsp;spaces in the URL with the encoded value &lt;STRONG&gt;“%20”&lt;/STRONG&gt; ? That would be the cleanest way of ensuring URLs with spaces work correctly as hyperlinks in web maps.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-expression-in-attribute-table-widget/idi-p/1332657" target="_self"&gt;Arcade expression in attribute table widget&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 19:37:14 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-09-27T19:37:14Z</dc:date>
    <item>
      <title>Hyperlink Field — Replace spaces with URL-encoded value “%20”</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idi-p/1332646</link>
      <description>&lt;P&gt;Oracle 18c 10.7.1 EGDB:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This isn't my area of expertise; I'm posting this idea because it's an issue my organization dealt with recently. I'll try to explain it as well as I can.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a FC that has a FILE_URL field. The values in the field are URLs to on-prem files, such as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="http://a.b.c.on.local/DRAWINGS/" target="_blank" rel="noopener"&gt;http://a.b.c.on.local/DRAWINGS/&lt;/A&gt;&lt;STRONG&gt;A123&lt;/STRONG&gt;.PDF&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://a.b.c.on.local/DRAWINGS/" target="_blank" rel="noopener"&gt;http://a.b.c.on.local/DRAWINGS/&lt;/A&gt;&lt;STRONG&gt;B 123&lt;/STRONG&gt;.PDF&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;Identify tool:&lt;/P&gt;&lt;P&gt;In a web map, when using the identify tool, URL #1 works as a clickable hyperlink because the file name doesn't have spaces. But URL #2 is not a clickable hyperlink, it's just plain text because the file name has a space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attribute Table widget:&lt;/P&gt;&lt;P&gt;Additionally, while URL #2 is technically a hyperlink in the Attribute Table widget, the hyperlink is broken/incorrect:&amp;nbsp;&lt;A href="http://a.b.c.on.local/DRAWINGS/B" target="_self"&gt;http://a.b.c.on.local/DRAWINGS/B&lt;/A&gt; &lt;FONT color="#FF0000"&gt;123.PDF&lt;/FONT&gt;. The hyperlink incorrectly excludes the portion of the URL that comes after the space in the hyperlink.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;We can workaround the identify window issue by using an&amp;nbsp;Attribute Expression (Arcade) to replace spaces with “%20”:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;return Replace($feature["FILE_URL"]," ","%20")&lt;/PRE&gt;&lt;P&gt;However, that expression doesn't get applied in the Attribute Table, so the Attribute Table hyperlink is still broken.&lt;/P&gt;&lt;P&gt;We might have the option to work around this issue in the &lt;EM&gt;underlying data&lt;/EM&gt;&amp;nbsp;(by &lt;SPAN&gt;replacing spaces with “%20” in a field)&lt;/SPAN&gt;:&lt;/P&gt;&lt;OL class="lia-list-style-type-upper-alpha"&gt;&lt;LI&gt;Use a calculation attribute rule to populate an additional field in the FC&lt;/LI&gt;&lt;LI&gt;Or use a calculated SQL field in a database view (note: layers based on database views are read-only/uneditable)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;However, those workarounds add unwanted complexity.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Idea:&lt;/P&gt;&lt;P&gt;Could OOTB functionality be added to the web map that automatically replaces&amp;nbsp;spaces in the URL with the encoded value &lt;STRONG&gt;“%20”&lt;/STRONG&gt; ? That would be the cleanest way of ensuring URLs with spaces work correctly as hyperlinks in web maps.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-expression-in-attribute-table-widget/idi-p/1332657" target="_self"&gt;Arcade expression in attribute table widget&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 19:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idi-p/1332646</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-09-27T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Field — Replace spaces with URL-encoded value “%20” - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333031#M3486</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;so I can fully understand.&amp;nbsp; The FILE_URL field, is a plain text field in your feature class?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 18:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333031#M3486</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-09-27T18:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Field — Replace spaces with URL-encoded value “%20”</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333048#M3487</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;Yes.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 18:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333048#M3487</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-09-27T18:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Field — Replace spaces with URL-encoded value “%20” - Status changed to: Open</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333108#M3488</link>
      <description />
      <pubDate>Wed, 27 Sep 2023 20:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/hyperlink-field-replace-spaces-with-url-encoded/idc-p/1333108#M3488</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-09-27T20:26:10Z</dc:date>
    </item>
  </channel>
</rss>

