Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 ERXBatchingDisplayGroup problem..

open
nobody
None
5
2012-12-07
2005-10-16
Anonymous
No

I have never been able to get the batchingDisplayGroup to work. I
always get an index out of bounds exception. Whats the deal here.
Below is the code in my component to set it up:

protected ERXBatchingDisplayGroup dg;

public tablerecordDG(WOContext context) {
super(context);
EODatabaseDataSource dds = new
EODatabaseDataSource(this.session().defaultEditingContext(),
"Items");
dg = new ERXBatchingDisplayGroup();
dg.setDataSource(dds);
dg.setNumberOfObjectsPerBatch(20);
}

Discussion