Select to view content in your preferred language

IsEmpty() is a Liar!

518
1
Jump to solution
11-21-2023 04:47 PM
Labels (1)
DanielKurmann
New Contributor

I am struggling with some arcade that is supposed to hide fields in a table if fields in a related table are null.  

I have written the following code:

IsEmpty(First(FeatureSetByRelationshipName($feature, "Parking_Count_Segments Inspections to Polygons", ["Spaces_30min"], false))) 
 
This code should return true as :
 

First(FeatureSetByRelationshipName($feature, "Parking_Count_Segments Inspections to Polygons", ["Spaces_30min"], false))

outputs

DanielKurmann_1-1700613777225.png

 

 

 

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Notable Contributor

Aren't you checking isEmpty() against a row of a feature set which surely exists?

I'd try to check against the record:

(First(FeatureSetByRelationshipName($feature, "Parking_Count_Segments Inspections to Polygons", ["Spaces_30min"], false))).Spaces_30min

View solution in original post

1 Reply
DavidPike
MVP Notable Contributor

Aren't you checking isEmpty() against a row of a feature set which surely exists?

I'd try to check against the record:

(First(FeatureSetByRelationshipName($feature, "Parking_Count_Segments Inspections to Polygons", ["Spaces_30min"], false))).Spaces_30min