<?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:  FeatureSet - How to reference a standalone table? in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343935#M7288</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Actually, it looks like the Filter function in lines 8 and 7 might be causing the issue in Field Maps....&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 15:58:34 GMT</pubDate>
    <dc:creator>ArmstKP</dc:creator>
    <dc:date>2023-10-31T15:58:34Z</dc:date>
    <item>
      <title>Arcade:  FeatureSet - How to reference a standalone table?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343911#M7284</link>
      <description>&lt;P&gt;Since one can't reference a standalone table with FeatureSetByName, like I have in line 2 below, what are my other options for Field Maps?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var plowhistory = Intersects(FeatureSetByName($map,"HistoryPlowingStatusParkingLots VIEW"), $feature);
var eventhistory = FeatureSetByName($map, "Events_view", ['eventstart'],false);

var eventhistorySorted = OrderBy(eventhistory, 'eventstart DSC')
var firsteventhistorySorted = First(eventhistorySorted)

var sql = "lastserviced &amp;gt; '"+firsteventhistorySorted.eventstart+"'"
var filterhistory = Filter(plowhistory, sql);
var filterhistorySort = Orderby(filterhistory, 'lastserviced DESC')
var popupString = "";

for (var myfeature in filterhistorySort){
    popupString += text(myfeature.lastserviced, 'MMM DD Y, hh:mm A') + '  ' + '|' + ' ' + ' ' + myfeature.vehicleid + ' | ' + ' ' + myfeature.makemodel +
    TextFormatting.NewLine 
}
return popupString&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343911#M7284</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-10-31T15:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  FeatureSet - How to reference a standalone table?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343913#M7285</link>
      <description>&lt;P&gt;There's FeatureSetByPortalItem. But do you need it to work offline for Field Maps? I feel like I've used FeatureSetByName to grab hosted tables as well, but then, they're usually in the same service, so $datastore works.&lt;/P&gt;&lt;P&gt;Any chance there's a relationship class in place?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343913#M7285</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-10-31T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  FeatureSet - How to reference a standalone table?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343915#M7286</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;I don't need it offline and there is no relationship.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343915#M7286</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-10-31T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  FeatureSet - How to reference a standalone table?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343929#M7287</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;The below works in the map viewer, but not in Field Maps:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var plowhistory = Intersects(FeatureSetByName($map,"HistoryPlowingStatusParkingLots VIEW"), $feature);
var eventhistory = FeatureSetByPortalItem(Portal('https://www.arcgis.com'),"623275cbca4a485780e375e2ba4f1c5e", 1, ['eventstart'],false);

var eventhistorySorted = OrderBy(eventhistory, 'eventstart DSC')
var firsteventhistorySorted = First(eventhistorySorted)

var sql = "lastserviced &amp;gt; '"+firsteventhistorySorted.eventstart+"'"
var filterhistory = Filter(plowhistory, sql);
var filterhistorySort = Orderby(filterhistory, 'lastserviced DESC')
var popupString = "";

for (var myfeature in filterhistorySort){
    popupString += text(myfeature.lastserviced, 'MMM DD Y, hh:mm A') + '  ' + '|' + ' ' + ' ' + myfeature.vehicleid + ' | ' + ' ' + myfeature.makemodel +
    TextFormatting.NewLine 
}
return popupString&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343929#M7287</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-10-31T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  FeatureSet - How to reference a standalone table?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343935#M7288</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Actually, it looks like the Filter function in lines 8 and 7 might be causing the issue in Field Maps....&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-featureset-how-to-reference-a-standalone/m-p/1343935#M7288</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-10-31T15:58:34Z</dc:date>
    </item>
  </channel>
</rss>

