Aliases don't work in Arcade

66
1
Tuesday
N0MAD
by
New Contributor III

Howdy

I have a problem with aliases, I changed the alias of a field like this:

N0MAD_0-1720531976040.png

But when i try to use the field in an arcade expression, the alias seems to don't work
For instance, when i call this field, here what's Arcade see:

 

var fields = Schema($feature).fields
Console(fields[42])

var count = 0;
for (var field in $feature) {
	if (count==41) Console(field)
	count++
}

 

 

Console:

 

 

{"alias":"T2_C9_POUSSIER_WINSBACK_MARIE_AGNES","defaultValue":null,"editable":true,"name":"T2_C9_POUSSIER_WINSBACK_MARIE_A","nullable":true,"type":"esriFieldTypeInteger"}

T2_C9_POUSSIER_WINSBACK_MARIE_A

 



It seems that the field alias isn't stocked in the schema, but then, how can i get the aliases ?

0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

That's really strange. It must be a field setting in the map? If the actual alias key in the schema doesn't have the preferred text, I don't know where else the popup would find it.

Do you have access to the source data? Configuring the aliases on the layer's Data tab would probably address this. If not, you might have to re-code the field names yourself using Decode or something.

- Josh Carlson
Kendall County GIS
0 Kudos