<?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 query in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-query/m-p/1315867#M53763</link>
    <description>&lt;P&gt;Hi Community, I am new to Arcade expression and trying to configure pop-ups for a feature layer in a web map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to configure is that pop-ups shows the names of point features located within the 1km distance from a selected line layer. I tried to configure this based on the example that I found in Esri community; however, it did not work for some reasons. I got an error - "&lt;SPAN class=""&gt;Parse Error:&lt;/SPAN&gt;&lt;SPAN&gt;Line 25: Unexpected end of input".&amp;nbsp; That would be much appreciated if anyone help me solve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code that I used is below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// create the 1km buffer
var buff = Buffer($feature, 1, 'kilometers')

// get intersecting points
var point_int = Intersects(buff, FeatureSetByName($map, 'Address_point - Residential Buildings'))

// loop through the returned points and populate an array
var address_list = []

for (var s in point_int) {
    // get distance
    var dist = Distance(s, $feature, 'kilometers')

    // push a formatted string to the address_list array
    Push(address_list, `${s['Incident Name']}: ${Text(dist, '#,###.0')} km away`)

// return a newline-delimited string from the array
return Concatenate(address_list, '\n')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Aug 2023 22:50:42 GMT</pubDate>
    <dc:creator>TTtttTeee</dc:creator>
    <dc:date>2023-08-06T22:50:42Z</dc:date>
    <item>
      <title>Arcade expression query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-query/m-p/1315867#M53763</link>
      <description>&lt;P&gt;Hi Community, I am new to Arcade expression and trying to configure pop-ups for a feature layer in a web map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to configure is that pop-ups shows the names of point features located within the 1km distance from a selected line layer. I tried to configure this based on the example that I found in Esri community; however, it did not work for some reasons. I got an error - "&lt;SPAN class=""&gt;Parse Error:&lt;/SPAN&gt;&lt;SPAN&gt;Line 25: Unexpected end of input".&amp;nbsp; That would be much appreciated if anyone help me solve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code that I used is below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// create the 1km buffer
var buff = Buffer($feature, 1, 'kilometers')

// get intersecting points
var point_int = Intersects(buff, FeatureSetByName($map, 'Address_point - Residential Buildings'))

// loop through the returned points and populate an array
var address_list = []

for (var s in point_int) {
    // get distance
    var dist = Distance(s, $feature, 'kilometers')

    // push a formatted string to the address_list array
    Push(address_list, `${s['Incident Name']}: ${Text(dist, '#,###.0')} km away`)

// return a newline-delimited string from the array
return Concatenate(address_list, '\n')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2023 22:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-query/m-p/1315867#M53763</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-08-06T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-query/m-p/1315905#M53765</link>
      <description>&lt;P&gt;You haven't closed your for loop. Add a closing curly brace in line 16.&lt;/P&gt;&lt;P&gt;Also, in line 15 your field name has a space. Use the actual field name, not the alias.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 05:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-query/m-p/1315905#M53765</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-08-07T05:50:49Z</dc:date>
    </item>
  </channel>
</rss>

