Hello, I have this code and I getting result in test but I can't set it up in pop-up of new map viewer?
var intersectLayer =Top(OrderBy(FeatureSetByName($map,"xyz"),"Inspection_Date DES"), 3); return intersectLayer
and this is I am seeing on pop-up
var popupLines = [ "Age: " + DefaultValue(cou.age, "not reported"), "Gender: " + DefaultValue(cou.gender, "not reported"), "Race: " + DefaultValue(cou.race, "not reported"), ] return Concatenate (popupLines, TextFormatting.NewLine) // or comma sepated: // return Concatenate(popupLines, ", ")
intersectLayer is a FeatureSet. It will be shown in the expression builder's test, but popups can't show it.
You have to build a string:
var inspection_dates = [] for(var f in intersectLayer) { Push(inspection_dates, f.Inspection_Date) } return Concatenate(inspection_dates, TextFormatting.NewLine)
Hello
I have this code which bring different fields from another layer to pop up but I can't get the result on popup
var fips = $feature["parent_id"] var dd = FeatureSetByName($map, "Survey v2", ['age','gender','race'],False) var fillterSur = "survey_id = @fips" var cou = First(Filter(dd, fillterSur)) var popupTEXT = "Age: " +Text(cou,'#,###') var popupTEXT = "gender: " +Text(cou,'#,###') var popupTEXT = "race: " +Text(cou,'#,###') return popupTEXT
The result I am getting is like this :
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.