cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Flexible Programming Model Edit Table

G_Misi
Discoverer
1,313

I've been trying to implement a table with FLP that toggles between editable and non editable on button click.

My first problem is that even when I set readOnly to false the cells look editable but arent.

G_Misi_1-1711005328348.png

And my secound proble is, when I change the "readOnly" value via the controller, nothing happens.

The documentation does not include the controller.

G_Misi_4-1711005893674.png

https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/buildingBlocks/t...

G_Misi_5-1711006498242.png

I found the controller and it seems to set a model that is not bound to the page and when I comment it out the functionality doesn't change.

Any help is appreciated.

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Caisi
Explorer
0 Likes

Hi @G_Misi,

I had the similar problem when I was creating custom page within the FPM. I was able to solve it by setting the isEditable property of global ui model that is available within FPM to true within the onAfterRendering method of the custom page.

onAfterRendering: function() {
    this.getModel("ui").setProperty("/isEditable", true);
},

I hope it helps.

Best regards,
Vladimir