# tabpanel search bug

**URL:** <https://forum.servoy.com/t/tabpanel-search-bug/1115>\
**Category:** Classic Servoy\
**Created:** [January 27, 2004, 8:54pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115 "2004-01-27T20:54:56Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [January 27, 2004, 8:54pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/1 "2004-01-27T20:54:56Z")

</div>

hi,  
I’m having a strange problem performing a search similar to Matt’s RapidSearch technique on a tabpanel  
First of all, the problem only appears on related tabpanel (I’m currently using a k to k relation, because with a nonrelated tabpanel I can’t refer to a particular record inside the tabpanel itself)  
The problem: let’s say I have three items in the table (Apple G4, Apple Powerbook, IBM Netvista);  
if I perform a search in a global with this code

```auto
controller.find()
description ="#%"+globals.cercatar+"%"
controller.search()
if(controller.getMaxRecordIndex()== 0)
{
globals.MessageNothingFound();
controller.loadAllRecords();
}

```

I have the following results:  
If I write “APP” in the global, I get two records: Correct.  
If I write “ZAGB”, I get the Nothing Found Message: Correct  
If I write “APP”, I hit the enter key and I add a V, I get the error message. But if I delete the V and I hit enter, I don’t get the two “APP” records anymore, but I get a system message SEARCH FAILED… TRY TO SHOW ALL, with no details.  
When I’m in this situation, I can’t restore the search functions anymore, except exiting the form.  
Any idea?

Servoy 2.0b6, OSX.2.8 and OSX.3.2

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [January 28, 2004, 6:10pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/2 "2004-01-28T18:10:01Z")

</div>

> Riccardino:  
> I have the following results:  
> If I write “APP” in the global, I get two records: Correct.  
> If I write “ZAGB”, I get the Nothing Found Message: Correct  
> If I write “APP”, I hit the enter key and I add a V, I get the error message. But if I delete the V and I hit enter, I don’t get the two “APP” records anymore, but I get a system message SEARCH FAILED… TRY TO SHOW ALL, with no details.  
> When I’m in this situation, I can’t restore the search functions anymore, except exiting the form.  
> Any idea?

Is there a “return” character in case #3 (when you delete the “V”)?

Have you also tried to to a controller.saveData() right before the search?

Bob Cusick

---

<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:** [January 28, 2004, 7:27pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/3 "2004-01-28T19:27:37Z")

</div>

> bcusick:  
> Is there a “return” character in case #3 (when you delete the “V”)?

No, I use the enter key, not return to confirm, and I delete using backspace.

> bcusick:  
> Have you also tried to to a controller.saveData() right before the search?  
> Bob Cusick

I tried: the error is still there 😢

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [January 28, 2004, 7:51pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/4 "2004-01-28T19:51:20Z")

</div>

And what if you would do a controller.loadAllRecords() before searching?

---

<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:** [January 30, 2004, 11:20pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/5 "2004-01-30T23:20:23Z")

</div>

> IT2BE:  
> And what if you would do a controller.loadAllRecords() before searching?

In this case, the error shows up every time…  
I also tried to remove the other loadAllRecords(), but I still get the error.

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [February 12, 2004, 6:39pm UTC](https://forum.servoy.com/t/tabpanel-search-bug/1115/6 "2004-02-12T18:39:24Z")

</div>

> I’m having a strange problem performing a search similar to Matt’s RapidSearch technique on a tabpanel

Can you send us the ‘.log.txt’ file as found in the Servoy installdir, when this problem occurs?
