<?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 IntersectLayer and\or FeatureSet Pop-up issue in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1039479#M648</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is the right board or not. It probably should be in a generic "arcade" board but I couldn't find one.&lt;/P&gt;&lt;P&gt;I have an Arcade pop-up expression that works perfectly in the traditional Map Viewer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PopUpResult.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9118iA5F94D7E4BBD15CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PopUpResult.PNG" alt="PopUpResult.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would love for this pop-up to work in Collector or Explorer but they come up blank in both. The expressions above it work fine but they don't use IntersectLayer or FeatureSets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like to be forward thinking and have the expression work in the Beta Map Viewer and Field Maps but they don't work there either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any ideas please send them my way. At the end of the day, I want it to work on a mobile app experience (Collector, Explorer, Field Maps).&lt;/P&gt;&lt;P&gt;Here is the Arcade expression;&lt;/P&gt;&lt;P&gt;var intersectLayer =Intersects(FeatureSetByName($map,"Revisits"), $feature)&lt;BR /&gt;var cnt = Count(intersectLayer);&lt;BR /&gt;var visits = "";&lt;BR /&gt;var order = "";&lt;/P&gt;&lt;P&gt;if (cnt &amp;gt; 0){&lt;BR /&gt;visits = 'There has been ' + Text(cnt) + ' revists to this site:';&lt;BR /&gt;order = OrderBy(intersectLayer, 'visitDate DESC')&lt;BR /&gt;for (var f in order){&lt;BR /&gt;var visit_date = Text(f.visitDate, ' Y/MM/DD: ');&lt;BR /&gt;var visit_obs = visit_date + DomainName(f,"changeFieldStatus");&lt;BR /&gt;visits += TextFormatting.NewLine + visit_obs;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;visits = "No visits recorded.";&lt;BR /&gt;}&lt;BR /&gt;return visits;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 20:59:17 GMT</pubDate>
    <dc:creator>mapmcburney</dc:creator>
    <dc:date>2021-03-22T20:59:17Z</dc:date>
    <item>
      <title>Arcade IntersectLayer and\or FeatureSet Pop-up issue</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1039479#M648</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is the right board or not. It probably should be in a generic "arcade" board but I couldn't find one.&lt;/P&gt;&lt;P&gt;I have an Arcade pop-up expression that works perfectly in the traditional Map Viewer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PopUpResult.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9118iA5F94D7E4BBD15CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PopUpResult.PNG" alt="PopUpResult.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would love for this pop-up to work in Collector or Explorer but they come up blank in both. The expressions above it work fine but they don't use IntersectLayer or FeatureSets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like to be forward thinking and have the expression work in the Beta Map Viewer and Field Maps but they don't work there either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any ideas please send them my way. At the end of the day, I want it to work on a mobile app experience (Collector, Explorer, Field Maps).&lt;/P&gt;&lt;P&gt;Here is the Arcade expression;&lt;/P&gt;&lt;P&gt;var intersectLayer =Intersects(FeatureSetByName($map,"Revisits"), $feature)&lt;BR /&gt;var cnt = Count(intersectLayer);&lt;BR /&gt;var visits = "";&lt;BR /&gt;var order = "";&lt;/P&gt;&lt;P&gt;if (cnt &amp;gt; 0){&lt;BR /&gt;visits = 'There has been ' + Text(cnt) + ' revists to this site:';&lt;BR /&gt;order = OrderBy(intersectLayer, 'visitDate DESC')&lt;BR /&gt;for (var f in order){&lt;BR /&gt;var visit_date = Text(f.visitDate, ' Y/MM/DD: ');&lt;BR /&gt;var visit_obs = visit_date + DomainName(f,"changeFieldStatus");&lt;BR /&gt;visits += TextFormatting.NewLine + visit_obs;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;visits = "No visits recorded.";&lt;BR /&gt;}&lt;BR /&gt;return visits;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 20:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1039479#M648</guid>
      <dc:creator>mapmcburney</dc:creator>
      <dc:date>2021-03-22T20:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade IntersectLayer and\or FeatureSet Pop-up issue</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1041800#M691</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/440266"&gt;@mapmcburney&lt;/a&gt;from a mobile perspective Arcade featuresets are not supported in Collector or Explorer.&amp;nbsp; They are, however supported in ArcGIS Field Maps.&amp;nbsp; Can you elaborate on the specifics of the layers you are querying against?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 03:35:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1041800#M691</guid>
      <dc:creator>DougMorgenthaler</dc:creator>
      <dc:date>2021-03-30T03:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade IntersectLayer and\or FeatureSet Pop-up issue</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1067629#M1185</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1128"&gt;@DougMorgenthaler&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for the info on Arcade featuresets being supported in ArcGIS Field Maps. I am currently trying to get featuresets to work in a survey map in Field Maps. Are featuresets supported offline? If not is this functionality in the next update?&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;I can get the featureset to work in the New Map Viewer but when I try the map in the Field Maps app the expressions do not show. I now just saved the web map from the New Map Viewer to the Classic Viewer and I again could view the featureset expression in the pop-up. I created an offline map area and the expression seems to work as it should offline!!&lt;/P&gt;&lt;P&gt;Why would the featureset expression not work in a web map saved in the New Map Viewer within Field Maps? This seems like a bug?&lt;/P&gt;&lt;P&gt;Thanks for any insight,&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank-you!,&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 02:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-intersectlayer-and-or-featureset-pop-up/m-p/1067629#M1185</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2021-06-12T02:14:59Z</dc:date>
    </item>
  </channel>
</rss>

