Screen Inheritance and Datasource Query Filter

Hello,

seemingly when a screen is extended and it’s child hides a datasource (i.e. defines a new one with the same id and a different entity class) query filter (https://doc.cuba-platform.com/manual-6.8/datasource_query_filter.html) conditions are combined with parent’s ones, which breaks JPQL.

Is it intended or not? And if so is there a way to control this?

As WA I’ve remove the extending.

Regards,
Ilia.

Hi.
Yes, you are right, query filter conditions are inherited when you extend a screen. As a workaround, you can copy the parent screen and add the necessary changes. We will try to provide a fix in one of the upcoming releases.

1 Like