cancel
Showing results for 
Search instead for 
Did you mean: 

One issue of the RetrieveLimitedRecordsCommand

Former Member
0 Kudos

Dear All,

When I use the Class RetrieveLimitedRecordsCommand to implement the search method, only can return 1000 records but according my condition it will return more than 1000 records.

I used RecordResultSet to save the return records. It is the limited to this method?

Could you please give me some help about this?

Thanks and Regards

Zhiqiang

Edited by: Zhiqiang Liu on Nov 12, 2008 10:11 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Zhiqiang Liu.

I think you can execute RetrieveLimitedRecordsCommand multiple times storing records in ArrayList. Then copy all records to array and create your own RecordResultSet:


final ArrayList recordsList = ...;
final Record[] records = new Record[recordsList.size()];
recordsList.toArray(records);
RecordResultSet resultSet = new RecordResultSet(records, tableId);

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Pavel Kolotey,

Nice to meet you again.

Thank you for your answer.

RetrieveLimitedRecordsCommand has one metod to setPageSize, can increase the size.

Thanks and Regards

Zhiqiang