I'm trying to set each individual cell of a row to be editable with conditional
Setting the field value manually [true, false, false] works fine. however, setting this as an expression, i.e {{ stateSalesOrderLines.value.map(row => !row.is_warranty_item) }} does NOT work. Even if i set a variable to [true, false, false], the UI sees the value as [true, false, false] but the expression evaluates Array(3)
[ [ false, false, true ], [ false, false, true ], [ false, false, true ]]
What's happening with both your attempts, is that you're returning a full object for each iteration.
When you select the dynamic option, you need to write a script that will evaluate either true or false for EACH of your rows. At the moment your script is returning a full object for each instance/row.
From what I read, I think you have a is_warranty_item in your table, right? So you could apply
{{ !currentSourceRow.is_warranty_item }}
This will iterate for each row and return a true or false, rather than a full objet, for each row.
That was the correct solution. I've been tearing my hairs out all morning trying to figure this out
I did not know i could not insert a pre-prepared object, and that the logic had to be written at line-level. That makes sense now. That means {{ variable2.value[i] }} also works.