CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Search using List Box and SQL source

Print topic Send  topic

Author Message
Amro
Posted: 08/05/2002, 5:07 AM

Hi
I have a search form with a list box and a grid that shows the results.
In CCS you can't force list box to search for *ALL* entries if you are using "SQL" as the grid source instead of "Table"... The problem is that you have to assign "Defualt Value" for each parameter you use in your SQL statment ! So you can't search for all .
Can anybody help me please? How can I search for all/any and show the results in a grid that uses hand written SQL statments ??
Thanks
Berry
Posted: 08/06/2002, 2:31 AM

Hmm... I'm facing the same problem. default value of SQL parameter is needed.
Nicole
Posted: 08/07/2002, 4:06 AM

Amro,
as CCS requires Default value for the table/sql parameters the workaround is to remove Where clause at all in case you want to list all the possible records.
Create Before Build Select event. Here is sample code for ASP and PHP that replaces Where clause with custom one:
ASP
EventCaller.Where = ""

PHP
global $form_name;
$form_name->ds->Where = "";

   


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.