Changing behaviour of data loader when certain filters are selected

Hi,

Is there a way to change filter dataloader behavior based on parameters selected?
E.g. setSoftDeleted to flase, when onlt deletedBy or deletedTS are selected as filter params?

Yes, if you implement your own service for data loading and use delegate in your CUBA Screen.

Here you can find the example. Please note that in the delegate:

@Install(to = "customersDl", target = Target.DATA_LOADER)
protected List<Customer> customersDlLoadDelegate(LoadContext<Customer> loadContext) {
    return dataManager.loadList(loadContext);
}

You can use ANY service in the screen. In this service, you can use EntityManager, JDBC, whatever, to load data. Just pass all the parameters you need to this service in order to filter data.