Action renaming and shortcut alias names

Jmix version: 1.1.3
Jmix Studio plugin version: 1.1.6-213
IntelliJ IDEA 2021.3 CE - Build #IC-213.5744.223, built on November 27, 2021
Operating System: macOS 12.1 (21C52)
File System: Case-Sensitive Journaled HFS+ (APFS)
Datebase: PostgreSQL 13

Hi Everyone

I have found that the PickerField was changed to EntityPicker in Jmix and that the actions have been renamed from:

https://doc.cuba-platform.com/manual-7.2/gui_PickerField.html

picker_lookup
picker_open
picker_clear

to:

https://docs.jmix.io/jmix/backoffice-ui/actions/standard-actions.html#picker-actions

entity_lookup
entity_open
entity_clear

but the action shortcut alias names are:

https://docs.jmix.io/jmix/backoffice-ui/actions/declarative-actions.html

PICKER_LOOKUP_SHORTCUT
PICKER_OPEN_SHORTCUT
PICKER_CLEAR_SHORTCUT

and not:

ENTITY_LOOKUP_SHORTCUT
ENTITY_OPEN_SHORTCUT
ENTITY_CLEAR_SHORTCUT

Is this correct? This does not seem consistent to me.

Furthermore, is there a list of all of these things that have been renamed?

The following code causes problems after the CUBA-to-Jmix migration if you are not aware that these actions have been renamed.

myPickerField.removeAction("picker_clear");

I have change it in the meantime to

myPickerField.removeAction("entity_clear");

Thanks in advance for your feedback.

Best regards
Chris

Hi,

This is correct. EntityPicker is one of the descendants of the ValuePicker component, along with ValuesPicker, TagPicker, EntityComboBox, i.e. they are the group of Picker components, hence shortcut constants have the most common names.

It seems like the CUBA-to-Jmix migration problem. I’ll create an issue in our bug tracking system. Thank you for reporting the problem.

The list of available actions for ValuePIcker and EntityPicker can be found in the documentation: here and here.

Regards,
Gleb

Regards,
Gleb

@gorelov

Hi Gleb

Thank you for the clarification, the issue and your efforts.

Best regards
Chris