How to disable a cell in an editable table

How to disable a cell in an editable table? for example, if Active is true, then set age can not be edited,if Active is false, age can be edited.
Jmix UI Samples
























Hello,

I’m not 100% sure this is the answer, but please see this old forum post:

It would appear that there isn’t a way to access the editable table’s fields unless you add the columns programmatically. In this case, your XML descriptor would not include the column with the field you are trying to conditionally set uneditable. Instead, you would create that column in the screen’s controller using customersTable.addGeneratedColumn(), at which time you would add a listener to perform the editable/uneditable state evaluation.

I would love to see confirmation or correction to my answer, as I was trying to figure this out as well.

Adam

Thank you very much for your help, I have tried this solution and it is indeed feasible.