<?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: Hyperlink in arcade expression loop in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310627#M4209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/217247"&gt;Christine Sharp&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see you have the correct information, you loop through the different board members and the name, phone, email etc is from the same related "row". So far so good, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The limitation when returning this data as a string, is that the web browser will not see it as a link to call or mail the person. This might behave differently in a phone browser (although I haven't tested that). You could create html from the Arcade expression, but this&amp;nbsp;will not be interpreted as html and appear as text. Did you test the pop-up in the web map on a mobile device? Are the email and phone number clickable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2019 15:47:14 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2019-06-28T15:47:14Z</dc:date>
    <item>
      <title>Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310626#M4208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a popup expression in enterprise portal which uses arcade to find records from a related table (1-many) and display a name and contact information for each person found.&amp;nbsp; The next request I received was to have the phone and email set with hyperlinks (this will be a mobile app).&lt;/P&gt;&lt;P&gt;If I create an expression for each part of the record (separate expression for name, email and phone), I can create the hyperlinks in the popup configuration, but I am afraid that the information may not be in the correct order so that the phone/email is shown for the correct person.&lt;/P&gt;&lt;P&gt;Here is what I have currently: (an image of the popup is attached as well)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Get ABM information from related table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Read out the Cluster Code of Cluster from the Cluster feature map&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var CCode = $feature.ClusterCode;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Access the Cluster ABM table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var ABMtbl = FeatureSetByName($datastore,"ABMbyCluster");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Create a sql expression to query FK_Code on CCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var sql = "FK_Code = '" + CCode + "'";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Filter the table using the sql expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var related_data = Filter(ABMtbl, sql);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Count the resulting records&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var cnt = Count(related_data);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// initiate a variable to hold the result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var result = "";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (cnt &amp;gt; 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;result = cnt + " Aux Board Members";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for (var row in related_data)&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// retrieve the ABM information to write to popup&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;result += TextFormatting.NewLine + TextFormatting.NewLine + row.Name + " (" + row.ABMType + ")" + TextFormatting.NewLine + " mailto:" + row.Email + TextFormatting.NewLine + " tel:" + row.Phone;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$datastore&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{ result = "No assigned ABMs"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;return result;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310626#M4208</guid>
      <dc:creator>ChristineSharp</dc:creator>
      <dc:date>2019-06-28T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310627#M4209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/217247"&gt;Christine Sharp&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see you have the correct information, you loop through the different board members and the name, phone, email etc is from the same related "row". So far so good, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The limitation when returning this data as a string, is that the web browser will not see it as a link to call or mail the person. This might behave differently in a phone browser (although I haven't tested that). You could create html from the Arcade expression, but this&amp;nbsp;will not be interpreted as html and appear as text. Did you test the pop-up in the web map on a mobile device? Are the email and phone number clickable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310627#M4209</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-06-28T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310628#M4210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Thanks for the review of my script.&amp;nbsp; The resulting popup does not have any hyperlinks, just the text 'mailto:' and 'tel:', so this method doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought was that maybe there is a way to create a separate expression for the name, then phone, then email for each person, but I was worried that the order may not be the same from the loop so the wrong email/phone might show with the person's name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 20:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310628#M4210</guid>
      <dc:creator>ChristineSharp</dc:creator>
      <dc:date>2019-06-28T20:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310629#M4211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/217247"&gt;Christine Sharp&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be a solution, but this would require many expression and could result in mixing data of different rows if you are not careful. It consists of using&amp;nbsp;custom HTML in the pop-up and filling just the mailto link from the Arcade expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS Pro it is already supported to construct HTML in a single Arcade expression and use that in the pop-up. This is not yet supported in the web map. See:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/blogs/bock/2019/06/19/using-arcgis-pro-and-arcade-expressions-to-create-shortlist-popups-that-pop-in-arcgis-runtime-apps"&gt;https://community.esri.com/blogs/bock/2019/06/19/using-arcgis-pro-and-arcade-expressions-to-create-shortlist-popups-that-pop-in-arcgis-runtime-apps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only assume that in some moment this will&amp;nbsp;be able in the web map too. But for now it isn't. How many ABM's can there be for a single feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 21:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310629#M4211</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-06-28T21:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310630#M4212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please send solutions emails to Mary Beth Vargha at mvargha@usbnc.org&amp;lt;mailto:mvargha@usbnc.org&amp;gt; as she is the technical contact and is the person submitting the help tickets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Christine Sharp&lt;/P&gt;&lt;P&gt;Bahai National Center&lt;/P&gt;&lt;P&gt;I.T. Department&lt;/P&gt;&lt;P&gt;Business Services Coordinator&lt;/P&gt;&lt;P&gt;(847) 733-3456&lt;/P&gt;&lt;P&gt;csharp@usbnc.org&amp;lt;mailto:csharp@usbnc.org&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 21:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310630#M4212</guid>
      <dc:creator>ChristineSharp</dc:creator>
      <dc:date>2019-06-28T21:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink in arcade expression loop</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310631#M4213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please send solutions emails to Mary Beth Vargha at mvargha@usbnc.org&amp;lt;mailto:mvargha@usbnc.org&amp;gt; as she is the technical contact and is the person submitting the help tickets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Christine Sharp&lt;/P&gt;&lt;P&gt;Bahai National Center&lt;/P&gt;&lt;P&gt;I.T. Department&lt;/P&gt;&lt;P&gt;Business Services Coordinator&lt;/P&gt;&lt;P&gt;(847) 733-3456&lt;/P&gt;&lt;P&gt;csharp@usbnc.org&amp;lt;mailto:csharp@usbnc.org&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 21:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/hyperlink-in-arcade-expression-loop/m-p/310631#M4213</guid>
      <dc:creator>ChristineSharp</dc:creator>
      <dc:date>2019-06-28T21:54:06Z</dc:date>
    </item>
  </channel>
</rss>

