Page 1 of 1

go to last record

PostPosted: Tue Jul 31, 2012 2:48 pm
by Hans Nieuwenhuis
in the servoy framework the following code is used to go to the last record :

Code: Select all
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,

Re: go to last record

PostPosted: Tue Jul 31, 2012 3:14 pm
by omar
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).

Re: go to last record

PostPosted: Tue Jul 31, 2012 8:14 pm
by Hans Nieuwenhuis
created a case for this : SVY-2788