Jmix GenericFilter issue when filtering with ManyToOne relationship field

Hi Jmix Support Team,

Recently I have faced an issue while filtering with the <genericFilter> component while filtering with a property that has a @ManyToOne relationship with another entity.

While selecting the “triple dot” button to view the list of Bank Code available, the popup appeared was expected to be only the list of bank codes table as highlighted in green brackets. However it also showed the Tittle and another genericFilter with the CRUD buttons as well, basically everything that I customized or have on my original the screen, before the dataGrid.

Also there was another error where if I opened another screen in TabbedMode, and come back to the original screen and click the “triple dots”, the title of the screen will be overwritten by the newly opened screen (highlighted in red). But this shouldn’t be an issue since the screen title and all should not appear in the first place.

Please let us know whether this is an underlying issue, or is there an explanation on why all the other components appear in the filter popup as well, and what is the solution to it?

Best Regards,
Wei Jian

Hi!

The entity_lookup action opens a lookup view of the target entity. There’s no separate <entity>.lookup, so its full <entity>.list view (with header, filter, and CRUD) opens.

The lookup view for an entity is selected based on the first match from top to bottom:

  1. A view annotated with @PrimaryLookupView for this entity;
  2. otherwise, a view with the ID <entity_name>.lookup, if registered;
  3. otherwise, a view annotated with @PrimaryListView;
  4. otherwise, a view with the ID <entity_name>.list.

So you need to define appropriate lookup view.


I couldn’t reproduce the bug you described. Could you please provide a test project that reproduces the problem?

Best regards,
Dmitriy