# Problems with searching

**URL:** <https://forum.servoy.com/t/problems-with-searching/9819>\
**Category:** Classic Servoy\
**Created:** [November 2, 2008, 2:15am UTC](https://forum.servoy.com/t/problems-with-searching/9819 "2008-11-02T02:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjekl](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mjekl](https://forum.servoy.com/u/mjekl)\
**Post date:** [November 2, 2008, 2:15am UTC](https://forum.servoy.com/t/problems-with-searching/9819/1 "2008-11-02T02:15:42Z")

</div>

I’m having problems with searching.

I’m trying to avoid using globals so I have two scripts:

SCRIPT: startFind()  
loads the searchForm in the main tab panel and enters find mode.

The user enters whatever data he whishes in the regular columns of this table. There are not many columns in this table, 11 columns to be precise. In fact in the search form I also have a nested tabpanel with a table view of the same db table (so as to see several find requests that may be issued).

SCRIPT: doSearch()  
When the user is happy, clicks on a button that triggers this method.  
Basically this method issues controller.search() and parses the results.

Problems:  
I do enter find mode, but I cannot trigger the doSearch() method clicking the button.  
What am I missing here. Any clues?

Txs,  
Miguel

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [November 2, 2008, 11:25am UTC](https://forum.servoy.com/t/problems-with-searching/9819/2 "2008-11-02T11:25:31Z")

</div>

Hi Miguel,

> mjekl:  
> Problems:  
> I do enter find mode, but I cannot trigger the doSearch() method clicking the button.  
> What am I missing here. Any clues?

What version of Servoy are you using ?  
I believe since v3.1.x it’s possible to trigger methods from a form in find mode when you have ‘controller.search’ in the method.

---

<div class="post-metadata">

**Author:** ![mjekl](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mjekl](https://forum.servoy.com/u/mjekl)\
**Post date:** [November 2, 2008, 2:44pm UTC](https://forum.servoy.com/t/problems-with-searching/9819/3 "2008-11-02T14:44:30Z")

</div>

Hi Robert,

> What version of Servoy are you using ?  
> I believe since v3.1.x it’s possible to trigger methods from a form in find mode when you have ‘controller.search’ in the method.

That’s the problem - version 2.2.8 ![:oops:]( "Embarassed") ! I’m juggling between different versions and end-up hitting a wall now and them. Unfortunately, there’s no revenue to justify changing versions for this simple had-on. So I guess I’m putting all the globals in a search module!

Thanks for the tip though!  
Best,  
Miguel
