go to last record

in the servoy framework the following code is used to go to the last record :

vNewIndex = databaseManager.getFoundSetCount(forms[vFormName].foundset)
// go to record
forms[vFormName].foundset.getRecord(vNewIndex)
forms[vFormName].controller.setSelectedIndex(vNewIndex);

This works fine in 5.1.x, but not in 6.1

It seems that not all records are loaded ( only the first 200 ).
Even adding forms[vFormName].foundset.loadAllRecords() does not help

Is there a reason this does not work in 6.1 ?

Regards,

Hi Hans,

Looks like a bug indeed. The problem is in the getRecord() method. It doesn’t return a record and doesn’t pull data into the foundset as it normally should (tested it on the example_data\order_details table).

created a case for this : SVY-2788