Show Labels on join Featureclass using arcade Expression

79
2
Jump to solution
07-05-2022 12:40 AM
cadgism
Occasional Contributor

I made a join between a feature class and a table. Want to show the labels from the table, for which I use the following expression,  it raises an error "bad-arcade-expression". Can someone help me on how can I solve this? Thank you

 

LabelField = TableNmae.Fieldname
labelExpressionInfo: {
            expression: "$feature." + LabelField 
        }

 

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
JohannesLindner
MVP Regular Contributor

Field names of joined tables have to be called using bracket notation.

The resulting  Arcade expression should look like this:

$feature["TableName.FieldName"]

 


Have a great day!
Johannes

View solution in original post

2 Replies
JohannesLindner
MVP Regular Contributor

Field names of joined tables have to be called using bracket notation.

The resulting  Arcade expression should look like this:

$feature["TableName.FieldName"]

 


Have a great day!
Johannes
cadgism
Occasional Contributor

Perfect , Thank you

0 Kudos