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.
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.