I have set up a default filter for all users (set code field, set user_id = null). Now I want to make it display on my Main Window (ext-mainwindow.xml). However, the Main Window doesn’t have an entry in web-menu.xml, so I don’t know where to put the entry.
Where should the entry go to put a default filter on the Main Window?
The main window doesn’t allow to pass parameters before it is opened. To set the default filter you can do the following: in the ready() method of the main window controller you can find the FilterEntity object (execute JPQL query that finds an entity by code with the DataManager) and then set it to the filter using the Filter.setFilterEntity() method().