Lookup view with Virtual List

I have a List View that displays data with a Virtual List instead of a DataGrid (no editing required). The application is used on mobile devices, so data visibility is better.
I would also like to use this View for Lookup operations.
But Jmix doesn’t allow specifying a VirtualList component:
@LookupComponent(“myVirtualList”).

Is there a way to work around this problem while maintaining standard Lookup functionality?

Hi!

As you can see, the virtualList component doesn’t implement the LookupComponent interface.
This is done because the LookupComponent interface is intended for selecting items (for example, in the case of entityPicker). It is impossible in general to define a selection model for the virtualList component.

If in your case the view is not used for selecting entities but is only needed for viewing, you can just remove the @LookupComponent annotation for your list view controller.

If you want the virtualList to have a selection functionality, you need to create your own component based on the virtualList and implement the LookupComponent interface in it.

Best regards,
Dmitriy