tabpanel search bug

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

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

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

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 :cry:

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

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.

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?