<?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 Push Arcade Expression Output to new expression in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/push-arcade-expression-output-to-new-expression/idi-p/1082153</link>
    <description>&lt;P&gt;Many pop-ups used by my organization are powered by Arcade in AGOL. For cleanliness, we utilize HTML to design a table in the pop-up.&amp;nbsp; However, Arcade can not output the HTML for the table, meaning we must output one value, populated into one table cell, for each desired value.&lt;/P&gt;&lt;P&gt;Often these expressions run the same initial functions before deviating near the end.&amp;nbsp; This means we may have a dozen or more Arcade expressions that are identical for the first 50-60% of the expression, drastically increaing processing.&lt;/P&gt;&lt;P&gt;I would like to suggest Arcade expressions have the ability to take the output of Arcade expression 1 as the input for Arcade expression 2.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have 400,000 points, consisting of hydrants and valves for a water network and 25 polygons representing service areas.&amp;nbsp; When I click a polygon, I want to know how many valves intersect the polygon and I want to know the count for each valve type.&amp;nbsp; I want this displayed in my pop-up in a table format.&amp;nbsp; Arcade can not output the HTML for the table format, so I must create several Arcade expressions, each outputting the count for a specific fix type.&amp;nbsp; If I have 10 valves types, this means I'll need 10 Arcade expressions, each one performing the filter to FeatureSetByPortalItem, asset type filter and Intersects().&amp;nbsp; This means it does the same thing 10 times.&lt;/P&gt;&lt;P&gt;The first half of my Arcade epxression will be the same for every expression.&amp;nbsp; FIrst I'll use FeatureSetByPortalItem to bring in the data and gemotry then I'll use a filter to get only valves, and a Intersects() to get the points intersecting the points within the polygon.&amp;nbsp; This process is repeated for every Arcade expression outputting the count of valves by type.&lt;/P&gt;&lt;P&gt;It seems it would be more efficent if I could make my first Arcade expression perform the&amp;nbsp;FeatureSetByPortalItem, filter and intersect before feeding that FeatureSet into the subsequent Arcade expressions to filter by valve type.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 13:45:46 GMT</pubDate>
    <dc:creator>JasonGlidewell</dc:creator>
    <dc:date>2021-07-23T13:45:46Z</dc:date>
    <item>
      <title>Push Arcade Expression Output to new expression</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/push-arcade-expression-output-to-new-expression/idi-p/1082153</link>
      <description>&lt;P&gt;Many pop-ups used by my organization are powered by Arcade in AGOL. For cleanliness, we utilize HTML to design a table in the pop-up.&amp;nbsp; However, Arcade can not output the HTML for the table, meaning we must output one value, populated into one table cell, for each desired value.&lt;/P&gt;&lt;P&gt;Often these expressions run the same initial functions before deviating near the end.&amp;nbsp; This means we may have a dozen or more Arcade expressions that are identical for the first 50-60% of the expression, drastically increaing processing.&lt;/P&gt;&lt;P&gt;I would like to suggest Arcade expressions have the ability to take the output of Arcade expression 1 as the input for Arcade expression 2.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have 400,000 points, consisting of hydrants and valves for a water network and 25 polygons representing service areas.&amp;nbsp; When I click a polygon, I want to know how many valves intersect the polygon and I want to know the count for each valve type.&amp;nbsp; I want this displayed in my pop-up in a table format.&amp;nbsp; Arcade can not output the HTML for the table format, so I must create several Arcade expressions, each outputting the count for a specific fix type.&amp;nbsp; If I have 10 valves types, this means I'll need 10 Arcade expressions, each one performing the filter to FeatureSetByPortalItem, asset type filter and Intersects().&amp;nbsp; This means it does the same thing 10 times.&lt;/P&gt;&lt;P&gt;The first half of my Arcade epxression will be the same for every expression.&amp;nbsp; FIrst I'll use FeatureSetByPortalItem to bring in the data and gemotry then I'll use a filter to get only valves, and a Intersects() to get the points intersecting the points within the polygon.&amp;nbsp; This process is repeated for every Arcade expression outputting the count of valves by type.&lt;/P&gt;&lt;P&gt;It seems it would be more efficent if I could make my first Arcade expression perform the&amp;nbsp;FeatureSetByPortalItem, filter and intersect before feeding that FeatureSet into the subsequent Arcade expressions to filter by valve type.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 13:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/push-arcade-expression-output-to-new-expression/idi-p/1082153</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-07-23T13:45:46Z</dc:date>
    </item>
  </channel>
</rss>

