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 (Query Filter - CUBA Platform. Developer’s Manual) 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