Lookup Picker Field picker_view action

Hi

In our project, all entity editors open read-only by default, the user has to click on “enable edit” to change something.

Currently Table have “edit” and “view” action types, where the later will open the editor in read-only mode, so we use “view” action everywhere.

For PickerField and LookupPickerField one cannot do so. There is a “picker_open” action linked to OpenAction but no “picker_view” action that would be linked to ViewAction.

Alternatively a simple “readonly” boolean parameter for the picker_open action that we could set in the xml descriptor would do the trick. At the price of a small inconsistency with actions available in a Table.

That would be an interesting addition.

Regards
Michael

Thanks for the idea, perhaps we’ll implement it in Jmix some day. Created issue: Implement EntityViewAction for EntityPicker that opens editor in read-only mode · Issue #425 · jmix-framework/jmix · GitHub

You can also create such an action in your project, see Custom Action Types - CUBA Platform. Developer’s Manual

Regards,
Konstantin

The magic of extensibility.

For those would need such a picker_view, file attached.

Thanks Konstantin

PickerViewAction.java (11.1 KB)