Hi, I am performing the following arcade expression in the Data webpage under the feature service in ArcGIS online:
Trim(Text(Split($feature["FULL_ADDRESS"], $feature["HOUSE_NO_LABEL"], 1, 0)))
As you can see from the image, the resulting string is left with the field qualifiers. Are my methodologies causing the issue or is this an arcade bug?
Cheers,
Aaron
Solved! Go to Solution.
It's actually returning an array of one item, consisting of the string. To get that item, you have to use this syntax
var array = Split($feature["FULL_ADDRESS"], $feature["HOUSE_NO_LABEL"], 1, 0);
return Trim(Text(array[0]));
or
Trim(Text(Split($feature["FULL_ADDRESS"], $feature["HOUSE_NO_LABEL"], 1, 0)[0]));
It's actually returning an array of one item, consisting of the string. To get that item, you have to use this syntax
var array = Split($feature["FULL_ADDRESS"], $feature["HOUSE_NO_LABEL"], 1, 0);
return Trim(Text(array[0]));
or
Trim(Text(Split($feature["FULL_ADDRESS"], $feature["HOUSE_NO_LABEL"], 1, 0)[0]));
Thanks Ken!