Page 1 of 1

Find ahead in a portal or tabpanel

PostPosted: Mon May 14, 2007 4:14 pm
by Andy
Hi there,

I am looking for an example solution where is explained how to do a find ahead in a portal or tabpanel

Thank you

Andy

PostPosted: Mon May 14, 2007 5:40 pm
by IT2Be
What exactly do are you looking for when you say 'find ahead'? Is that doing a find or using text ahead?

PostPosted: Mon May 14, 2007 6:02 pm
by Andy
I am looking for a solution tha show how to implement "find ahead"

With find ahead I mean typing lets say someones name in a field and during the typing the solution start searching the database and you see the portal
rows scroll.

Tahnk you

Andy

PostPosted: Mon May 14, 2007 6:13 pm
by IT2Be
There is a type ahead field type if that is what you want. I am not aware of any sample doing what you describe.

Using type ahead is as simple as creating a valuelist with the db values, attaching that to the field and make the field a 'type ahead' type.

PostPosted: Mon May 14, 2007 6:43 pm
by patrick
I think what he is looking for is something that will fire a search after each and every character entered in the search field. I don't see how this is possible...

PostPosted: Mon May 14, 2007 7:56 pm
by Andy
patrick wrote:I think what he is looking for is something that will fire a search after each and every character entered in the search field. I don't see how this is possible...



Exactly! Only I am not sure if it is possible and how we should get there

I have seen it in a delphi app wich I try to rebuild in servoy.

Thank you

Andy

PostPosted: Mon May 14, 2007 8:06 pm
by patrick
I don't see how you can do that. But honestly: I don't think that it is really necessary. What you ask for means that you fire (possibly a LIKE) query every single time I enter a character. That is a lot of queries (of the expensive type if using LIKE). Why don't you just let the user enter what he is searching for, then hit enter and you search using LIKE onAction of the search field?

PostPosted: Mon May 14, 2007 9:14 pm
by Andy
The reaso why I am looking for this feature is because it really works fine in the delphi application and we are used to it while you are typing the needed record is wright before you so you can immediatelly see the info.

Not first type the name and than the search button it is very efficient.

I do not think it is a lot of code i feel that it is something like a loop I am nt sure.

Thank you

PostPosted: Mon May 14, 2007 11:27 pm
by patrick
I think what is needed is an event that is fired when the user types a character. It is possible, but not available. You need some sort of listener. Currently, I don't see which trick you can find to trigger an event. The best idea is to make this a feature report in the support system. Or somebody else has a good idea on how to do this inside Servoy without a bean. I will play with this a bit. Maybe it is easy to make a free bean that can do something like that. I keep you updated.

PostPosted: Tue May 15, 2007 1:39 pm
by Andy
Thank you,

I'll be looking forward

Andy