No clickable `Add search condition`

Hello,

How can I make Add search condition clickable after opening a screen with RelatedEntities and adding filter caption?

Example code:

RelatedEntitiesBuilder builder = relatedEntitiesSupport.builder(this);

String filterCaption = "Custom Filter Caption";

    Screen customerBrowser = builder
            .withEntityClass(Order.class)
            .withProperty("customer")
            .withSelectedEntities(ordersTable.getSelected())
            .withConfigurationName(filterCaption)
            .build();
    customerBrowser.show();

Right now I get this
image

Thanks,
Ilias

Verify that the user has special permission ui.filter.modifyConfiguration.
There are special permissions for creating and editing filters: Filter :: Jmix Documentation

You might need to create a role with the special permissions for the filter, or add those special permissions to an existing role.

Hello,
I have the problem even with full-access role. In any other case I can add search conditions. Same thing happening in your live demo https://demo.jmix.io/sampler/#main/0/sample?id=relatedentities-simple
Thanks!

Apparently I missed one point…
You want Add search condition link to be available on the screen you opened from RelatedEntities ?

I’m afraid it won’t work.
In this case, the open screen already shows the entities that are associated with the selected RelatedEntities.

A standard filter with new criteria would simply make a new query in the database without considering the previous selection of related attributes in RelatedEntities.

This is because RelatedEntities searches for related entities and opens a screen to display the found instances.
But it does not pass its search criteria to the filter of the opened screen, but passes a list of entity IDs that need to be shown.