on 11-12-2008 8:48 AM
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
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.