Hi guys, just want to let you know that when you have abstract window with tables+filters, filters won’t work as expected. table/datasource is refreshed, but data are not filtered. When you open this directly (without nesting in frame) it works as expected.
Replication:
Create sidepanel menu template
Create abstract window eg. Dashboard
Add some table/s and filter/s into Dashboard
Extend Main Window and add frame into it, set frame screen to Dashboard
Dashboard’s filters wont work in Main Window, but will work in Dashboards own screen (Applications-> Dashboards).
Similar things happens with popup windows as well.
If this really is a bug please add to YouTrack, I am not sure if it is some properties problem or bug.
I just found out in logs
WARN [http-nio-8080-exec-103/app/admin] com.haulmont.cuba.gui.xml.layout.loaders.FrameLoader - Frame class should not be inherited from AbstractWindow. It may cause problems with controller life cycle. Frame controllers should inherit AbstractFrame.
So I guess you know about this
This even results into this
ERROR [http-nio-8080-exec-107/app/anonymous] com.haulmont.cuba.gui.components.filter.FilterDelegateImpl - Exception on loading default filter ''
if you open new window
Hi,
Unfortunately, I could not reproduce the problem.
Probably I have misunderstood something.
Did you created a screen with the “Side menu main window” template and put the frame onto it?
Did you adjust Height of the frame? Maybe the filter works but part of the table is not visible?
Could you prepare and share a little project which will illustrate the issue?
Thank you for reporting the problem.
We have created a YouTrack issue.
As I wrote in the related topic assigning ID to the frame should solve the problem.