<?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: getting attribute from featureset in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481303#M59445</link>
    <description>&lt;P&gt;Make sure you're getting features from the FeatureSet to get your attributes. Something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var pFS = yourParcelFeatureSet;
var intersectedFS = Intersects(pFS, $feature);
var feat = First(intersectedFS); //assuming there is just one feature in the interection results
var owner = feat.OwnerAddress;
var filteredFS = Filter(pFS, 'OwnerAddress = @owner');
var output = [];
for (var f in filteredFS) {
  Push(output, `  ${f.ParcelID}
`);
}
//this works for a Text element. Use &amp;lt;br&amp;gt; for an Arcade element
return `${Count(filteredFS)} parcels: 
        ${Concatenate(output, '')}`&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 30 May 2024 16:37:25 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2024-05-30T16:37:25Z</dc:date>
    <item>
      <title>getting attribute from featureset</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481248#M59443</link>
      <description>&lt;P&gt;I'm having a bit of a brain freeze on this problem. I want to use intersect to return a parcel that intersects with a point, and then I want to filter the featureset of parcels based on a owner address value found in my intersected parcel record. I'm having a hard time accessing the individual attributes of the intersected parcel however - I had thought something like $feature.attributename would work but this doesn't seem to work with featuresets. My workflow as i have been envisioning it is something like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;make parcel feature set.&lt;/LI&gt;&lt;LI&gt;intersect parcels with $feature&lt;/LI&gt;&lt;LI&gt;obtain 'owner address' from intersected parcel feature set&lt;/LI&gt;&lt;LI&gt;filter original parcel feature set with the owner address.&lt;/LI&gt;&lt;LI&gt;display filtered records in popup, or at least a count.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Objective here is to return the number (and list) of parcels which have the same owner address. Any thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481248#M59443</guid>
      <dc:creator>clt_cabq</dc:creator>
      <dc:date>2024-05-30T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: getting attribute from featureset</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481303#M59445</link>
      <description>&lt;P&gt;Make sure you're getting features from the FeatureSet to get your attributes. Something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var pFS = yourParcelFeatureSet;
var intersectedFS = Intersects(pFS, $feature);
var feat = First(intersectedFS); //assuming there is just one feature in the interection results
var owner = feat.OwnerAddress;
var filteredFS = Filter(pFS, 'OwnerAddress = @owner');
var output = [];
for (var f in filteredFS) {
  Push(output, `  ${f.ParcelID}
`);
}
//this works for a Text element. Use &amp;lt;br&amp;gt; for an Arcade element
return `${Count(filteredFS)} parcels: 
        ${Concatenate(output, '')}`&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 May 2024 16:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481303#M59445</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-05-30T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: getting attribute from featureset</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481603#M59462</link>
      <description>&lt;P&gt;That was my issue, I didn't realize i had to get that feature before accessing its attributes, very big help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;! I have a few other things to sort out with this but so far this works well for my immediate need.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 21:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/getting-attribute-from-featureset/m-p/1481603#M59462</guid>
      <dc:creator>clt_cabq</dc:creator>
      <dc:date>2024-05-30T21:14:44Z</dc:date>
    </item>
  </channel>
</rss>

