I am not sure if this is a bug or else, but I noticed this behaviour in 3.0 that is different from 2.0.
In Servoy 3.0, after an Sql query I get a dataset containing 8101 rows. When I load the dataset using controller.loadRecords the resulting foundset is limited to 1000 record, no matter how many rows I have retrieved using databaseManager.getDataSetByQuery. In Servoy 2.0 there was no limit and all records in the resulting set where loaded so that I could do something on each one (in my specific case I wanted to retrieve data from a remote database to update the records).
var sqlQue = "SELECT tb_test.tb_testid FROM tb_test WHERE tb_test.fd_check = '1'";
var sqlSet = databaseManager.getDataSetByQuery(controller.getServerName(),sqlQue,null,10000);
var resSet = sqlSet.getMaxRowIndex()
controller.loadRecords(sqlSet);
var fndSet = databaseManager.getFoundSetCount(foundset);
in Servoy 2.0 resSet and fndSet gave the same result, 8101. In Servoy 3.0 resSet = 8101 and fndSet = 1000.
If I have more than 1000 rows in the dataset and I need to loop through all of them, how can I do that? foundset.getSize or controller.getMaxRecordIndex don’t seem to be of any help in this case.
MacOS 10.4.8
Servoy Developer
Version R2 2.2.5-build 337
Java version 1.5.0_06-68 (Mac OS X)
Version 3.0-build 371
Java version 1.5.0_06-68 (Mac OS X)
MySql 5.0.24a