Toggle an editable attribute on a snippet - Mendix Forum

Toggle an editable attribute on a snippet

2

HI,

 

Rather than creating a 'Edit' and a duplicated 'View' snippet, if we could have an attribute on the snippet to set editable that applied to all controls within the snippet, that would be useful.

 

Thanks.

asked
2 answers

Hi Ronald, 

In this particular scenario there was a nested data view within the snippet itself and in one scenario it was required read-only and another editable.

Kind regards,

Created

Why would you duplicate the snippet? If the main object is not editable than the snippet is also non editable, so all is depending on the main object you use.

Regards,

Ronald

Created