Lazy Loading: problem with XdevQuickTableFilterField

Description

Initial behaviour:
--------------------------------------------------------------
I create a new project with default h2 cars db. Then I create a XdevWindow with following components:

  • XdevQuickTableFilterField

  • XdevTable (cars.vt)

The XdevTable is connected with the XdevQuickTableFilterField and Lazy Loading is activated in the XdevTable.
--------------------------------------------------------------

Real behaviour:
--------------------------------------------------------------
If I scroll in the table and search in the XdevQuickTableFilterField, then the following error message appear:

Jul 01, 2013 4:24:14 PM xdev.util.logging.XdevLoggerImpl error
SEVERE:
java.lang.IndexOutOfBoundsException: -1 != (0-369)
at xdev.util.MathUtils.checkRange(MathUtils.java:1139)
at xdev.db.jdbc.JDBCPager.gotoRow(JDBCPager.java:239)
at xdev.ui.paging.LazyLoadingTableModel.loadRequestedData(LazyLoadingTableModel.java:333)
at xdev.ui.paging.LazyLoadingTableModel.access$5(LazyLoadingTableModel.java:324)
at xdev.ui.paging.LazyLoadingTableModel$2$1.run(LazyLoadingTableModel.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
--------------------------------------------------------------

Environment

None

Activity

Show:
SS
September 13, 2013, 6:36 AM

Info message was successfully implemented.

JW
July 12, 2013, 12:30 PM
Edited

If a component which provides the lazy loading property is going to be connected with a QuickFilterField, a InfoOptionPane must show which describes that lazy loading functionality is no longer working if filtered.

Richard
July 9, 2013, 2:47 PM

FH
July 9, 2013, 11:56 AM
Edited

HL check with JW

FH
July 9, 2013, 11:55 AM

Check if it's possible to filter in DB layer, or get a xdev.db.Condition out of it.

Implemented

Assignee

JW

Reporter

SS

Labels

None

Fix versions

Affects versions

Priority

Minor