Info window paging
- Fixed a paging calculation error - Fixed paging for Oracle, resultset.absolute doesn't work on forward only resultset. Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2913975
This commit is contained in:
parent
f59b902a34
commit
08aa2b0875
|
@ -450,7 +450,6 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
|
||||||
|
|
||||||
protected void renderItems()
|
protected void renderItems()
|
||||||
{
|
{
|
||||||
Vector<String> columnHeader = getColumnHeader(p_layout);
|
|
||||||
if (m_count > 0)
|
if (m_count > 0)
|
||||||
{
|
{
|
||||||
if (m_count > PAGE_SIZE)
|
if (m_count > PAGE_SIZE)
|
||||||
|
@ -504,7 +503,7 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
|
||||||
{
|
{
|
||||||
if (start+1 >= cacheStart && end+1 <= cacheEnd)
|
if (start+1 >= cacheStart && end+1 <= cacheEnd)
|
||||||
{
|
{
|
||||||
return end == -1 ? line : line.subList(start, end);
|
return end == -1 ? line : line.subList(start-cacheStart+1, end-cacheStart+2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -563,7 +562,11 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
|
||||||
//skips the row that we dont need if we can't use native db paging
|
//skips the row that we dont need if we can't use native db paging
|
||||||
if (end > start && m_useDatabasePaging && !DB.getDatabase().isPagingSupported())
|
if (end > start && m_useDatabasePaging && !DB.getDatabase().isPagingSupported())
|
||||||
{
|
{
|
||||||
m_rs.absolute(cacheStart-1);
|
for (int i = 0; i < cacheStart - 1; i++)
|
||||||
|
{
|
||||||
|
if (!m_rs.next())
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int rowPointer = cacheStart-1;
|
int rowPointer = cacheStart-1;
|
||||||
|
|
Loading…
Reference in New Issue