Beyond last page when filter is changed
If a filter is applied after browsing a couple of pages in a list (eg users), then the message returned from BASE is "No users on this page. Please select another page!". This message makes some sense since you can select page "1", and see your matches. It would be nice if the first page would be displayed by default as it seems that the program realizes that the results is somewhat unexpected.
Change History
(8)
Type: |
defect → enhancement
|
Milestone: |
BASE 2.0+ → BASE 2.0
|
Priority: |
minor → major
|
Summary: |
Listing/filtering → Beyond last page when filter is changed
|
Owner: |
changed from Johan Enell to Nicklas Nordborg
|
Owner: |
changed from Nicklas Nordborg to Martin Svensson
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
A possible solution is: All properties for the building the query is set by net.sf.basedb.clients.web.Base.getAndSetCurrentContext()
This method could check all submitted filter values against the current (old) filter and if they have changed set the current page to 1.
This advantage of this solution is that we don't have to change the code for all list pages.