Hi ANDREW BUTTERFIELD ,
It seems that there is something strange going on in your data. I was expecting to find a relationship from the organizations info to the venue locations, but I only found one relationship towards Form_2. And when I try to use it, it returned an empty string as the relationship name:
Earlier you mentioned that the link between the two layers is established using the organization name, so I used that instead. have a look at the expression below:
var orgname = $feature["org_name"];
var fsvenues = FeatureSetByName($map,"Venue Locations", ["org_venue", "org_venue_address", "org_venue_type"], False);
var sql = "org_name = @orgname";
var venues = Filter(fsvenues, sql);
var cnt = Count(venues);
var result = "";
if (cnt > 0) {
result = cnt + " venues found:"
for (var venue in venues) {
result += TextFormatting.NewLine + TextFormatting.NewLine + venue["org_venue"];
result += TextFormatting.NewLine + venue["org_venue_type"];
result += TextFormatting.NewLine + venue["org_venue_address"];
}
} else {
result = "no venues found...";
}
return result;
The result will show like this:
Is this what you are after?