Is anyone else having any trouble with this? Creating an expression that uses a featureset (by ID or by name) fails to run properly on iOS devices. It does however, run properly on Android. Here's the beginning of a code that I was working on:
var activityid = $feature["related_global_id"]; //pull activity id from current related record attribute
var activitysql = "GlobalID = '" + activityid + "'";//create sql expression to filter activity records feature set
var activitytbl = FeatureSetByName($datastore,"Tree Activity"); //access tree activity table
var activityrecords = Filter(activitytbl, activitysql);//isolate related activity record(s)
var activitycnt = Count(activityrecords);//count the number of records returned after filtering
var activity = First(activityrecords);
var treeid = "";
if (activitycnt == 0) {
return null;
} else {
treeid = activity.related_global_id;
}
return treeid 'treeid' returns properly on android but not our ipad.