Annotation @Lookup gone?

Hi everybody.

I liked, in CUBA, to use the @Lookup annotation, in entities definition, to set the way the associated data will be picked-up (Dropdown, screen)

@Lookup(type = LookupType.DROPDOWN, actions = "lookup")

This annotation doesn’t work any more with JMIX and I wonder if there is a way to use a combobox instead of the screen when editing/choosing attributes

image

I had a look on the entities JMIX annotations but didn’t find what I was looking for.

Thanks for your support.

O.

Hi
This, at least, provides an answer
https://docs.jmix.io/jmix/backoffice-ui/vcl/components/data-grid.html#_inline_editor_customizing

Maybe it is a shorter / more elegant solution, but this one works
image

Hello!

Instead of @Lookup annotation you can use an application property:

jmix.ui.component.entityFieldType

See Backoffice UI Properties.

For instance:

jmix.ui.component.entityFieldType.myapp_City = entityComboBox
1 Like