Select to view content in your preferred language

Valid Arcade expression for below detail.

729
2
Jump to solution
03-04-2022 12:25 AM
Labels (3)
Rakesh_Kumar_GIS
Occasional Contributor

Hi ,

I want one expression in Arc Pro for Show map tips.

But I have issue , below first snap shot. One field having Null value but I can't remove this field from expression because other features having these values. 

So, I just want valid expression for don't display any Null value fields. Show only those fields where some values populated.

Rakesh_Kumar_GIS_2-1646381816607.png

 

Rakesh_Kumar_GIS_1-1646381756726.png

 

 

Thanks in Advance.

 

Tags (2)
0 Kudos
2 Solutions

Accepted Solutions
JohannesLindner
MVP Frequent Contributor
var labels_and_values = [
  ["Name = ", $feature.Name],
  ["Type = ", $feature.Type],
  ["River = ", $feature.River],
]
var lines = []
for(var i in labels_and_values) {
  if(!IsEmpty(labels_and_values[i][1])) {
    Push(lines, Concatenate(labels_and_values[i]))
  }
}
return Concatenate(lines, TextFormatting.NewLine)

Have a great day!
Johannes

View solution in original post

Rakesh_Kumar_GIS
Occasional Contributor
0 Kudos
2 Replies
JohannesLindner
MVP Frequent Contributor
var labels_and_values = [
  ["Name = ", $feature.Name],
  ["Type = ", $feature.Type],
  ["River = ", $feature.River],
]
var lines = []
for(var i in labels_and_values) {
  if(!IsEmpty(labels_and_values[i][1])) {
    Push(lines, Concatenate(labels_and_values[i]))
  }
}
return Concatenate(lines, TextFormatting.NewLine)

Have a great day!
Johannes
Rakesh_Kumar_GIS
Occasional Contributor

Thanks !!!! JohannesLindner

Its Working

0 Kudos