# Default Search Disables After First Use

**URL:** <https://forum.servoy.com/t/default-search-disables-after-first-use/20506>\
**Category:** Questions\
**Created:** [May 27, 2021, 12:44pm UTC](https://forum.servoy.com/t/default-search-disables-after-first-use/20506 "2021-05-27T12:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grace.lapietra](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@grace.lapietra](https://forum.servoy.com/u/grace.lapietra)\
**Post date:** [May 27, 2021, 12:44pm UTC](https://forum.servoy.com/t/default-search-disables-after-first-use/20506/1 "2021-05-27T12:44:47Z")

</div>

Hello,

I am working on upgrading from Servoy 5 up to Servoy 8, and have run into a few issues with our solution in the Smart Client.

When I launch the solution and load a form, I can use the default Find/Search methods to reduce my search, but if I try to do it again, it gets stuck in Find mode, the Search option is disabled in the ‘Select’ menu.

If I create a form method that only contains ‘foundset.search();’ and assign it to a button on the form, it seems to work. It doesn’t work if I assign that method to OnSearch, however.

Has anyone else experienced a similar problem or have any possible solutions?

---

<div class="post-metadata">

**Author:** ![grace.lapietra](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@grace.lapietra](https://forum.servoy.com/u/grace.lapietra)\
**Post date:** [May 27, 2021, 3:33pm UTC](https://forum.servoy.com/t/default-search-disables-after-first-use/20506/2 "2021-05-27T15:33:11Z")

</div>

Of course as soon as I post I figure out the cause of the problem. I forgot to mention in my post that it wasn’t happening in all forms, only forms with multiple tab panels/lots of stuff going on. I began isolating each tab and removing/adding any form methods and figured out we had set a method on a few tab panels onRecordSelection that uses find/search to search other forms that open in external windows via a button, which was entirely unnecessary in our case and in fact redundant because the find/search were also performed when the forms are opened. Leaving this here in case anyone else finds it useful.

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [May 27, 2021, 11:19pm UTC](https://forum.servoy.com/t/default-search-disables-after-first-use/20506/3 "2021-05-27T23:19:06Z")

</div>

We converted all find()/search() code in our solution to query builder objects. Query builder is more versatile and reliable. You may want to consider this for your upgrade.
