Ability to check the editability of an attribute in a widget - Mendix Forum

Ability to check the editability of an attribute in a widget

5

In some cases the access rules or read-only dataviews make an attribute non-editable. I would like to have that information in the widget. Now I need to copy a snippet to a readonly copy, which is a maintenance problem.

asked
2 answers

Hi,

This is an old one, but still relevant today ; the method “isReadonlyAttr” doesn’t exist anymore, and anyways it’s in the java API, so not directly available in the UI;
I created a question for this : https://forum.mendix.com/link/questions/113174

I also created a test project, and tried to use IMendixObjectMember.hasWriteAccess() / hasReadAccess() methods, but they always return true, which is obviously a bug.
I’m going to create a support request for this
Cheers,

Created

There is a method "isReadonlyAttr" on MxObject. Is it what you are looking for?

Created