Hi,
I have @OneToMany relation (Invoice-InvoiceItems) and need to search by item fields (InvoiceItem.description).
So I created datasource accordingly, have FilterBuilder and Listgrid attached to this datasource.
User may choose InvoiceItem description field in the FilterBuilder fields list and fill criteria.
This is working fine (server can filter by item fields) as far as client does not have all records in its cache. If it does then it tries to filter locally and fails obviously.
I do not want to turn client side filtering all together for this listgrid (assume that item searching would be rare), so I am thinking about setting ResultSet.useClientFiltering flag to false just before setting criteria for the listgrid, but only when criteria include item filtering.
Is it the right approach ? Any other/better ideas ?
Thanks
MichalG
I have @OneToMany relation (Invoice-InvoiceItems) and need to search by item fields (InvoiceItem.description).
So I created datasource accordingly, have FilterBuilder and Listgrid attached to this datasource.
User may choose InvoiceItem description field in the FilterBuilder fields list and fill criteria.
This is working fine (server can filter by item fields) as far as client does not have all records in its cache. If it does then it tries to filter locally and fails obviously.
I do not want to turn client side filtering all together for this listgrid (assume that item searching would be rare), so I am thinking about setting ResultSet.useClientFiltering flag to false just before setting criteria for the listgrid, but only when criteria include item filtering.
Is it the right approach ? Any other/better ideas ?
Thanks
MichalG
Comment