How to change the editability of a page with button
0
Hello guys, I want to set two buttons to open a same form, one is editable and the other is read-only, how to achieve it? (Mendix version: 10.7.0)
asked
Bo Fu
1 answers
0
Hi Bo Fu,
I think your best option would be:
- Create a non-persistable entity with a boolean attribute 'Editable'
- Before opening the page, create an object of this entity and set the 'Editable' attribute.
- Show the page (form) with this object as parameter, as well as your form object.
- In the page set the editability of the dataview based on the 'Editable' attribute
Hope this helps!
answered
Pedro Voorwinden