Cannot edit new table row columns when column editability is controlled dynamically

  1. My goal: Have my table columns editability controlled dynamically
  2. Issue: When I have this setup, new rows will not allow edits to be made to the columns that are supposed to be editable.
  3. Steps I've taken to troubleshoot: I have removed the expression from the editable Boolean on the columns and switch to a static true check box. The columns became editable in the new row. The expression I was using was not dependent on currentSourceRow data. It was evaluating true or false using an out of table reference.
  4. Additional info: (Cloud or Self-hosted, Screenshots) I am running the cloud version.

Hi @Shawn_Crocker,

How are you adding new rows to the table? Let me look to reproduce this to file a bug report or see if there is a work around.

So if there are columns A,B and C. You use a variable to make B editable, and then when you add a new row, B is not editable for the new row or any of the old rows, correct?

Hi @Jack_T Actually, the column is only un-editable from within the new unsaved row only when the editable toggle is dynamic. I can still edit the column from within pre-existing rows. See the little gif

https://drive.google.com/file/d/1lptvwC4GBHL0iLtPStgZghDIMLRa8mYK/view?usp=sharing

1 Like

Thank you so much for the video @Shawn_Crocker!

I was able to reproduce this, definitely a bug and I will create a bug report for this right now.

In terms of work arounds for the short term, one option for maintaining edibility via boolean variable and allowing for new row creation would be to use a form component to input data into fields and then run a PUT event on submit to add the row to the table and re-fetch.

Would that work for your use case while we get the bug taken care of?

In this case, no. What I am doing as a work around is just setting the columns as statically editable. Then I am using the logic to decide if a user should or should not be able to edit the columns to drive the disable on the table save event. This way, at least approved users can edit conveniently but, users not allowed to edit could be confused about being able to change the table but not push the save button. Thanks for looking into this. :+1:

1 Like

Ahh I see, nice work around!