I have a table that I'd like to:
1. Color records by an attribute;
2. Concatenate one field based on value in another field.
I've been trying to do this with arcade, but I can't seem to get it to read through each table record. My latest effort is below:
var test = $feature.Land_Use
var desc = []
for (var i in $feature){
iif ($feature.Determination == 'Compatible'){
var group = test[i]
Push(desc, group)}
If ($feature.Determination == 'Incomp'){
var group = test[i]
Push(desc, group)
}}
return Concatenate(desc, ', ')
Is what I'm trying even possible with arcade or does it require a custom widget?? The reason for wanting to use list or table is so the user can search. Table is attached. Any help or suggestions is much appreciated!! TIA
At a quick glance, I see you have an 'iif' statement which is technically an 'if-else' statement. So I believe it needs an argument to evaluate to if statement is true, and if the statement is false:
IIf(condition, trueValue, falseValue)
That is correct but it still doesn't fix the issue.
Experience Builder does not currently support Arcade.
Arcade is supported in pop-ups for Experience Builder which is where I'm trying to customize the output.
I'm not sure what your intent is with this table or your Arcade script, but here is some information you may find useful.