I want to show the DomainName in popup. Data are in a related table (FeattureSetByName). I don't know why I have an error message 'Field not found' for my existing field 'interventionpanneau' (has a domain). Because a var (f) in a var (intervention)...??
var tbl = FeatureSetByName($datastore,"Panneau signalisation")
var gid = $feature["GlobalID"];
var sql = "gidsupport = '" + gid + "'";
var panneau = Filter(tbl,sql);
for (var f in panneau)
{
var intervention = DomainName($feature,f.interventionpanneau)
var mtq = f.codemtq;
panneaux += TextFormatting.NewLine + intervention + " - " + mtq
}
return panneaux;