# duplicate found set problem

**URL:** <https://forum.servoy.com/t/duplicate-found-set-problem/886>\
**Category:** Classic Servoy\
**Created:** [December 20, 2003, 3:47pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886 "2003-12-20T15:47:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [December 20, 2003, 3:47pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/1 "2003-12-20T15:47:04Z")

</div>

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](https://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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [December 21, 2003, 12:51pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/2 "2003-12-21T12:51:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [December 21, 2003, 1:09pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/3 "2003-12-21T13:09:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [December 21, 2003, 1:15pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/4 "2003-12-21T13:15:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RobertMeyer](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RobertMeyer](https://forum.servoy.com/u/RobertMeyer)\
**Post date:** [August 8, 2004, 10:38pm UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/5 "2004-08-08T22:38:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [August 9, 2004, 7:33am UTC](https://forum.servoy.com/t/duplicate-found-set-problem/886/6 "2004-08-09T07:33:38Z")

</div>

see here: [controller.DuplicateFoundSet problem - Classic Servoy - Servoy Community](http://forum.servoy.com/viewtopic.php?t=2456&highlight=duplicatefoundset)
