<?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: Arcade Intersect returns 2 values: Need help with formatting in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302829#M8007</link>
    <description>&lt;P&gt;Nevermind, figured out a solution after playing with it for a few minutes.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var parcel = FeatureSetByName($map, 'Parcel Boundary')

var parcelID = Intersects(parcel, $feature)

var parcel_details = ''

for(var row in parcelID) {
    parcel_details = parcel_details
    + row.PARCEL_ID + " "
}

return parcel_details&lt;/LI-CODE&gt;&lt;P&gt;Looks like I just needed to add a space after the Parcel_ID&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 04:04:39 GMT</pubDate>
    <dc:creator>MPach</dc:creator>
    <dc:date>2023-06-26T04:04:39Z</dc:date>
    <item>
      <title>Arcade Intersect returns 2 values: Need help with formatting</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302812#M8006</link>
      <description>&lt;P&gt;I'm using a simple Arcade expression to return what I thought would be an single intersecting parcel polygon when a gravity main line feature was clicked on. In my short sightedness I hadn't realized it's possible for that gravity main line to exist across two parcels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I thought it would always return:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPach_0-1687744422758.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74109i7763050A27A3129A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MPach_0-1687744422758.png" alt="MPach_0-1687744422758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It turns out though I can get something like this where both parcel numbers are returned and it looks messy:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPach_1-1687744518674.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74110i66E5013F4804569C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MPach_1-1687744518674.png" alt="MPach_1-1687744518674.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way I can format my return statement to display multiple parcels separated by a comma?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var parcel = FeatureSetByName($map, 'Parcel Boundary')

var parcelID = Intersects(parcel, $feature)

var parcel_details = ''

for(var row in parcelID) {
    parcel_details = parcel_details
    + row.PARCEL_ID 
}

return parcel_details&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302812#M8006</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-06-26T04:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect returns 2 values: Need help with formatting</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302829#M8007</link>
      <description>&lt;P&gt;Nevermind, figured out a solution after playing with it for a few minutes.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var parcel = FeatureSetByName($map, 'Parcel Boundary')

var parcelID = Intersects(parcel, $feature)

var parcel_details = ''

for(var row in parcelID) {
    parcel_details = parcel_details
    + row.PARCEL_ID + " "
}

return parcel_details&lt;/LI-CODE&gt;&lt;P&gt;Looks like I just needed to add a space after the Parcel_ID&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302829#M8007</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-06-26T04:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Intersect returns 2 values: Need help with formatting</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302830#M8008</link>
      <description>&lt;P&gt;Definitely multiple answer here too. Stacking the labels with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TextFormatting.NewLine&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;in place of the space works nicely too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-intersect-returns-2-values-need-help-with/m-p/1302830#M8008</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-06-26T04:08:32Z</dc:date>
    </item>
  </channel>
</rss>

