<?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 Arcade Expression popup polylines contained within polygon in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-popup-polylines-contained-within/m-p/1351483#M55980</link>
    <description>&lt;P&gt;any ideas why the below will work against an AGOL hosted feature service but not against one hosted from our local ArcServer&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var MLay = Distinct(Contains(FeatureSetByName($map,"lineA"),$feature),'FPERSON')

var ML_array = []
var ML_pop2 = ''

for (var i in MLay ){
  Insert(ML_array,0,i.FPERSON)
}

var ML = Distinct(ML_array)
for (var j in ML){
  ML_pop2 += ML[j] + ", "
}

return "ML(s): " + ML_pop2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 15:19:36 GMT</pubDate>
    <dc:creator>StuartMoore</dc:creator>
    <dc:date>2023-11-20T15:19:36Z</dc:date>
    <item>
      <title>Arcade Expression popup polylines contained within polygon</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-popup-polylines-contained-within/m-p/1351483#M55980</link>
      <description>&lt;P&gt;any ideas why the below will work against an AGOL hosted feature service but not against one hosted from our local ArcServer&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var MLay = Distinct(Contains(FeatureSetByName($map,"lineA"),$feature),'FPERSON')

var ML_array = []
var ML_pop2 = ''

for (var i in MLay ){
  Insert(ML_array,0,i.FPERSON)
}

var ML = Distinct(ML_array)
for (var j in ML){
  ML_pop2 += ML[j] + ", "
}

return "ML(s): " + ML_pop2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-popup-polylines-contained-within/m-p/1351483#M55980</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2023-11-20T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression popup polylines contained within polygon</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-popup-polylines-contained-within/m-p/1352468#M56030</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for (var i in MLay ){
  Insert(ML_array,0,i.FPERSON)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var c = 0
for (var i in MLay ){
  ML_array[c] = i.FPERSON
  c +=1
}&lt;/LI-CODE&gt;&lt;P&gt;fixed it with this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-popup-polylines-contained-within/m-p/1352468#M56030</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2023-11-22T12:49:12Z</dc:date>
    </item>
  </channel>
</rss>

