# search command

**URL:** <https://forum.servoy.com/t/search-command/6671>\
**Category:** Classic Servoy\
**Created:** [October 31, 2006, 3:13pm UTC](https://forum.servoy.com/t/search-command/6671 "2006-10-31T15:13:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [October 31, 2006, 3:13pm UTC](https://forum.servoy.com/t/search-command/6671/1 "2006-10-31T15:13:19Z")

</div>

Hi,

I have a problem on search’s form. When I start the find, I have a error:  
Search failed… try show all  
java.lang.NullPointerException

Actually, I have a form with one field. the dataprovider of this field is none.

I set to ‘none’ the dataprovider because when I launch the search method, I add some code to the field. Example, I start a find, I type ‘titi’ in the search field, and I start the search method. This method change ‘titi’ to ‘#%titi%’.

It worked fine before Version3 of Servoy.  
thanks

---

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [November 1, 2006, 1:50pm UTC](https://forum.servoy.com/t/search-command/6671/2 "2006-11-01T13:50:41Z")

</div>

Hi,

what about using a ‘virtual table column’ as a search field? This would probably get around this problem. See other posts on forum, or (I think) Marcel’s Tips and Tricks presentation from the Servoy Developer Conference.

---

<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 1, 2006, 1:52pm UTC](https://forum.servoy.com/t/search-command/6671/3 "2006-11-01T13:52:25Z")

</div>

Or use a global as dataprovider.

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [November 1, 2006, 7:45pm UTC](https://forum.servoy.com/t/search-command/6671/4 "2006-11-01T19:45:14Z")

</div>

Or an input dialogbox.

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [November 2, 2006, 9:24am UTC](https://forum.servoy.com/t/search-command/6671/5 "2006-11-02T09:24:04Z")

</div>

Hi,

I will use a global as dataprovider.

Thanks
