Hi , I would like an enhancement/change of the controller.readOnly function.
Because we use our own security system, we check on some forms, if the user is allowed to change/edit data yes or no.
so we make a method attached to onShow
if(blabla) controller.readOnly = true
else controller.readOnly = false
But the problem is that the forms in the tabpanels become readOnly too. This is the default behaviour now. But, what I would like is, that if I do make a method to the onShow of a tabpanel:
controller.readOnly = false
that that form(tabpanel) is allowed to change/edit data again.
I know that I can do this by naming every element en setting every element by hand. But this would simplify a lot!
If you set the readonly for each form of your tabpanel you should be able to handle readonly as you want. For example:
controller.readOnly = true // controller form
forms.detail_a.controller.readOnly = true // form A in tabpanel
forms.detail_b.controller.readOnly = true // form B in tabpanel
if you then execute a method that:
forms.detail_b.controller.readOnly = false
then the form A in the tabpanel should be writable while the controlling forma and the form B in the tabpanel should stay readonly.
That’s what I ment by main-form → the controlling form.
If I set this one to controller.readonly = true, than also all the tabpanels are readonly.
if I set a tabpanel to: controller.readonly = false, they are not enabled again!
I want to use it, for the following.
My customers has users, who are not allowed to change/edit anything to the customer section,
but they can make notes or todo’s for the customer.