duplicate found set problem

Hello,

I have a form with a custom controller. Both are based on the same table. The controller form has buttons to search certain things. One of the search methods looks like this:

var aktuelle_auswahl = currentcontroller.duplicateFoundSet();
currentcontroller.find();
datensatztyp = ‘Person’;
if (!currentcontroller.search(false, true))
{
plugins.dialogs.showWarningDialog( ‘Nur Firmen’, ‘Es wurden keine passenden Daten gefunden!’, ‘OK’);
currentcontroller.loadAllRecords();
//currentcontroller.loadRecords(aktuelle_auswahl);
}

as you can see, I have commented currentcontroller.loadRecords(aktuelle_auswahl). When using this instead of currentcontroller.loadAllRecords() the controller seems to get out of synch with the form showing the data. e.g. the controller doesn’t show the number of records anymore etc.

Am I doing something wrong here?

Servoy 1.2 on Windows XP.

Thanks.

Can’t reproduce it with 2.0beta.
The old foundset restored perfectly

if you really have a reproduceable case in a solution than please send it over.

I am working with 1.2. The porblem is not, that the found set is not reproduced but that the controller is “out of sync”. Usually for example the controller shows me the number of records and so forth. After reproducing the found set, the number of records is not shown anymore and the back and forth buttons do work but the records in the list are not walked through.

If I want to send you the solution, what exactly do I have to do? I am working with SQL Server, that also holds the repository.

Export youre solution and send it to me.
then i will make some sample data for the form you are searching in.
so that i can test it.

i am experiencing this exact problem;

i don’t see a response here in the thread. could someone
please update me on how to solve this problem?

thanks very much
rm.

see here: controller.DuplicateFoundSet problem - Classic Servoy - Servoy Community