Find ahead in a portal or tabpanel

Share business templates, ideas, experiences, etc with fellow Servoy developers here

Find ahead in a portal or tabpanel

Postby Andy » Mon May 14, 2007 4:14 pm

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
nav
Andy
 
Posts: 32
Joined: Wed Apr 18, 2007 9:26 pm
Location: Suriname

Postby IT2Be » Mon May 14, 2007 5:40 pm

What exactly do are you looking for when you say 'find ahead'? Is that doing a find or using text ahead?
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Andy » Mon May 14, 2007 6:02 pm

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
nav
Andy
 
Posts: 32
Joined: Wed Apr 18, 2007 9:26 pm
Location: Suriname

Postby IT2Be » Mon May 14, 2007 6:13 pm

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.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby patrick » Mon May 14, 2007 6:43 pm

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...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Andy » Mon May 14, 2007 7:56 pm

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
nav
Andy
 
Posts: 32
Joined: Wed Apr 18, 2007 9:26 pm
Location: Suriname

Postby patrick » Mon May 14, 2007 8:06 pm

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?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Andy » Mon May 14, 2007 9:14 pm

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
nav
Andy
 
Posts: 32
Joined: Wed Apr 18, 2007 9:26 pm
Location: Suriname

Postby patrick » Mon May 14, 2007 11:27 pm

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.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Andy » Tue May 15, 2007 1:39 pm

Thank you,

I'll be looking forward

Andy
nav
Andy
 
Posts: 32
Joined: Wed Apr 18, 2007 9:26 pm
Location: Suriname


Return to Sharing Central

Who is online

Users browsing this forum: No registered users and 2 guests