Hello @XanderBakker ,
This post helped me a lot as I am beginner to the world of Arcade so thanks so much.
I have one question, is there a way to make some loop that can go thro multiple related record and show them as one attribute (or more) in pop up.
This is how it looks now, only showing one related record:
And code used was yours with some simple modifications:
var relatedrecords = OrderBy(FeatureSetByRelationshipName($feature,"ActivitesMaster"), "Activity DESC");
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt > 0) {
var info = First(relatedrecords);
relatedinfo = info.Activity
}
return relatedinfo;
Is something similar to For or While Loop available in Arcade? Main problem is that some features have 1 related attribute, and up to 3 or 4 in some different cases. This would help me and the several apps that I am developing.
Thanks in advance,
Ivan