I'd like to show the photos, if any by a listing in the popup. I have this so far, but can't get to the photo.
Any suggestions on how to get the related photo as a listing in the popup?
var relatedrecords = FeatureSetByRelationshipName($feature,"COREs_photos")
var cnt = Count(relatedrecords);
var result = "Related records: " + cnt;
if (cnt>0)
{
for (var row in relatedrecords) {
result += TextFormatting.NewLine + row.globalid;
}
}
return result;