changing a table column editable

Hi
I am trying to set a composite table column editable programmatically which is triggered by user action as follows:


 salesOrderLineTable.getColumn("price").setEditable(true);

But it is not working! Note that the table is already set editable and some columns of the table are already editable and they are working. I have set them editable in xml. However, for the “price” column, i need to turn on and off editable programmatically.
Thanks for your guidance.

Hello,

a problem here is that our documentation doesn’t have an important fact - changing “editable” property in runtime is not supported. You can find a log message about it in the app.log file.

I’ve created an issue to fix a documentation.

Best Regards,
Daniil.

Hi Danil
Is there any possibility that it will support in future, can this be planned in road map?
Thanks.

Yes, it will be supported in the future. You can track an issue about it: YouTrack.

Hi,

is this already implemented?
I am using the version 7.2.x…
calcPriceBomItemsTable.getColumn(“cprmPrice”).setEditable(true);

It does not change anything…

Using a generator, it works…

Roland

Hello Roland,

the feature is not implemented. We don’t have specific plans when it will be supported. The issue now is placed here: cuba-platform/cuba#488