CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Wildcard Searches

Print topic Send  topic

Author Message
Aaron
Posted: 08/06/2002, 11:10 AM

I am using CodeCharge JSP w/ Templates. I have set up my search (on the same problem as the grid) to use like '...%' on my builder field. This should allow me to search for k and get all builders starting with k, how ever this is not how it is acting. It won't allow me to use k* to do this same search either. I want to be able to search using wildcards. Currently in order to find the records I need I have to enter the exactly correct character string for the record. I really need a way to use wildcards.

thanks for your help,

Sorry for the repost, but I realized that my previous subject was confusing
Ron
Posted: 08/07/2002, 6:23 AM

Aaron,
what you can do is to build custom Where clause on the fly depending on the entered search parameters.
You let users enter words like
*tom
tom*
*tom*

Then catch and parse the passed value and use operator depending on found "*". E.g. in case "*" is the first character in the string use
like '%passed_param_value'
etc.


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.