Hi,
The uploaded file is a simple example of using a dto and a screen to show all dto data.
This works fine except for:
- Filter, it’s not possible to filter on the columns
- Excel, this works for ‘current page’ and ‘selected rows’, not for ‘All rows’
Jmix version: 1.5.5
Jmix Studio plugin version: 2.4.1-243
code.txt (3.5 KB)
d.kremnev
(Dmitriy Kremnev)
2
Hi!
This does not work in version 1.5.5 because the current implementation of exportAll works by loading data from the database.
This functionality is only available in version 2.3.0+
I created a port issue: [Port 1.x] ExportAll action doesn’t use LoadDelegate · Issue #3914 · jmix-framework/jmix · GitHub
The only way to use filtering for DTO entities is to use a load delegate and adapt the conditions for passing to the service.
See: Using DTO entities and non-persistent attributes in filter components by KremnevDmitry · Pull Request #3238 · jmix-framework/jmix · GitHub
Best reagrds,
Dmitriy
In the example from the link I see the following:
The properties become available in the Add Condition dialog
Not in my example.
When I do ‘Add search condition’, there are no properties at all!