Can you control visibility based on the Editability of a data view?

2
I have a large snippet that I want to re-use in a page, where one version is editable, and one is not. In that snippet are a couple of buttons that I don’t want to be visible in the non-editable version. Is it possible to hide those buttons if the surrounding dataview is in “Editable: No” mode?
asked
3 answers
3

As far as I know what you're hoping to do is not possible out of the box. A workaround would be to create a helper object with an “editable” attribute, based on which you can set the visibility of the buttons within your snippet. It's not pretty, but it should work.

answered
1

In addition to Eline’s useful answer: conditional editability is not for security, so make sure your entity access, roles and permissions are set correctly.

answered
0

I have submitted an idea for this here: https://forum.mendix.com/link/ideas/2909.

answered