Correct post filtering problem with Disbursement UI

Description

Melissa was attempting to print Disbursements so she clicked the "Show Printable" button.  The filter results were more than she wanted to print so she attempted to add a date to further filter the results.  This resulted in the date filter box being outlined in red and the attached error in the usasapp log.

  • In DisbursementCollaborator.PrintableFilter, we need to provide a proper implementation of appliesToProperty. This will allow the underlying framework to remove and re-apply the filter accordingly.

    • NOTE: In this case, we cannot determine if the filter applies to a particular property because it is not associate with a specific property. Therefore, per the documentation's suggestion in Vaadin's Container.Filter, we will return true for this method. Through experimenting, I found that if I set the return value to true, every subsequent filter that is added to the grid causes the printable filter to be removed. We want the printable filter to stay, therefore I will be returning false.

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Fix versions

Source

Time tracking

1h logged

Components

Priority

Better PDF Exporter

Created January 24, 2018 at 3:38 PM
Updated February 1, 2018 at 6:27 PM
Resolved February 1, 2018 at 6:27 PM