Hello:
I need help creating an ArcGIS Arcade popup Expression that will intersect and return all address points found in any given parcel in my parcel layer. I would then like to see if those intersected address points are also in a separate flat table also in my web map. I would like to display the values for a certain field in that table if so (the Path field). I wanted to create the new expression by working off my existing expression that already returns the intersected values using the FullAddress field. The help I need is determining if those intersected values in the FullAddress field in the address point layer are also in the the FullAddress field in the table and then display the value in the Path field if so. My table is in the map and called PDF Archive: https://lacounty.maps.arcgis.com/apps/webappviewer/index.html?id=4cf18bf143c049ef84a173672e089e48
The existing expression is below. You can click on any parcel in the web map to see how it works.
var addresspoints = Intersects(
$feature,
FeatureSetByName($map,"Addresses (GIS)", ["FullAddress"])
);
var cnt = Count(addresspoints);
var counter = (cnt-(cnt - 1))
var address_info = "";// validate if there are any intersected records and handle accordingly
if (cnt > 0) { // there is at least 1 intersected record, create address info
address_info = cnt + " Address(es):"; // loop through intersected records
for (var address in addresspoints) { // create text using name and description
var address_text = (counter++) + ". " + address.FullAddress; // add the text for this address to the address info
address_info += TextFormatting.NewLine + address_text; }} else { // no intersected records
address_info = "No addresses found for this parcel";}
return address_info;
Any help would be greatly appreciated.