<?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 pop-up in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1108107#M42599</link>
    <description>&lt;P&gt;I'm trying to display quarterly inspection results in my pop ups but it's proving to be more difficult than I thought. Here's an example:&lt;/P&gt;&lt;P&gt;var tbl = Orderby(FeatureSetByRelationshipName($feature,"Day10Rem"), "Rem10Date");&lt;BR /&gt;var tbc = OrderBy(FeatureSetByRelationshipName($feature,"Day10Rem"), "Rem10Conc");&lt;BR /&gt;var Qc = IIf(tbl &amp;gt;= Date(2021,6,1) &amp;amp;&amp;amp; tbl &amp;lt; Date(2021,10,1), "Rem10Conc", "");&lt;BR /&gt;return Qc&lt;/P&gt;&lt;P&gt;Could anyone please point me in the right direction or offer suggestions?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 20:57:00 GMT</pubDate>
    <dc:creator>DEI</dc:creator>
    <dc:date>2021-10-15T20:57:00Z</dc:date>
    <item>
      <title>Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070435#M40792</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to use an Arcade expression in my web map pop-up to list the most current inspection reading for a point.&amp;nbsp; I have a set of location points with a related 1:M inspection table which includes numerous readings per point (with dates) recorded over the last several months. This is what I have:&lt;/P&gt;&lt;P&gt;var Ra=(FeatureSetByRelationshipName($feature,"Bal2021"));&lt;BR /&gt;var Rb=Reverse([Ra]);&lt;/P&gt;&lt;P&gt;return First(Rb);&lt;/P&gt;&lt;P&gt;Test returns the entire array in chronological order. Can anyone please suggest how I could display just the most current reading?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070435#M40792</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-06-21T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070441#M40793</link>
      <description>&lt;P&gt;Reverse returns an &lt;STRONG&gt;Array. &lt;/STRONG&gt;What you probably want is &lt;STRONG&gt;OrderBy&lt;/STRONG&gt;, which will return a FeatureSet. Calling &lt;STRONG&gt;First &lt;/STRONG&gt;on the FeatureSet will give you the individual features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var Ra = FeatureSetByRelationshipName($feature, "Bal2021");
var Rb = OrderBy(Ra, 'your-date-field DESC');

return First(Rb);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, this will just return a single &lt;STRONG&gt;Feature&lt;/STRONG&gt;. If you're looking for a reading value, you would need to access that specifically.&lt;/P&gt;&lt;PRE&gt;First(Rb)['reading-value-field']&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070441#M40793</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070451#M40795</link>
      <description>That was fast – thanks!&lt;BR /&gt;&lt;BR /&gt;I tried your suggestion but the Test returns the first reading from&lt;BR /&gt;January. I would like to display the last reading from June. I think what&lt;BR /&gt;I’m looking for is something like a ‘Last’ or ‘Reverse’ function to call on&lt;BR /&gt;the FeatureSet.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070451#M40795</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-06-21T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070452#M40796</link>
      <description>&lt;P&gt;Hm. Could you paste a sample of the Ra FeatureSet? And also the Rb FeatureSet you're getting when you attempt to sort it?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070452#M40796</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070473#M40798</link>
      <description>Please see the attached screenshots.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070473#M40798</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-06-21T15:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070479#M40800</link>
      <description>&lt;P&gt;I don't see any. You can paste images directly in your message, too.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070479#M40800</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070487#M40801</link>
      <description>&lt;P&gt;Oops... Maybe now?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1070487#M40801</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-06-21T15:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1071026#M40842</link>
      <description>&lt;P&gt;In case anyone else may need it, I was able to figure out a solution by following along with&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/how-to-get-attribute-with-last-date-modified-from-related-table/td-p/293183" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;and making some modifications. Here's what I ended up with:&lt;/P&gt;&lt;P&gt;var Ra = OrderBy(FeatureSetByRelationshipName($feature,"Bal2021"), "Date_Time DESC");&lt;/P&gt;&lt;P&gt;var cnt = Count(Ra);&lt;/P&gt;&lt;P&gt;if (cnt &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;var Rb = First(Ra).RaDe;&lt;/P&gt;&lt;P&gt;} else var Rb= "";&lt;/P&gt;&lt;P&gt;return Rb;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1071026#M40842</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-06-22T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade pop-up</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1108107#M42599</link>
      <description>&lt;P&gt;I'm trying to display quarterly inspection results in my pop ups but it's proving to be more difficult than I thought. Here's an example:&lt;/P&gt;&lt;P&gt;var tbl = Orderby(FeatureSetByRelationshipName($feature,"Day10Rem"), "Rem10Date");&lt;BR /&gt;var tbc = OrderBy(FeatureSetByRelationshipName($feature,"Day10Rem"), "Rem10Conc");&lt;BR /&gt;var Qc = IIf(tbl &amp;gt;= Date(2021,6,1) &amp;amp;&amp;amp; tbl &amp;lt; Date(2021,10,1), "Rem10Conc", "");&lt;BR /&gt;return Qc&lt;/P&gt;&lt;P&gt;Could anyone please point me in the right direction or offer suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 20:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-pop-up/m-p/1108107#M42599</guid>
      <dc:creator>DEI</dc:creator>
      <dc:date>2021-10-15T20:57:00Z</dc:date>
    </item>
  </channel>
</rss>

