CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Search parameter in custom sql

Print topic Send  topic

Author Message
travel-net

Posts: 56
Posted: 03/24/2004, 1:16 AM

Hello,

How can i add a Search parameter in a custem sql based grid.
I've tried the following but then the grid contains no records.

AND tablename.field like '%{fieldname}%'

Regards,
Frans
View profile  Send private message
peterr


Posts: 5971
Posted: 03/24/2004, 5:48 PM

Your SQL code look OK, but you also need to click the [+] button and define the "fieldname" parameter.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
travel-net

Posts: 56
Posted: 03/24/2004, 11:59 PM

Helo,

I wan't to define the search by a search form, thus SEARCH FORM, CUSTOM SQL BASED Grid.

Therefore i think it is not possible to define the parameter via the + button, because the search form transfers the parameter.

Regards,
Frans
View profile  Send private message
peterr


Posts: 5971
Posted: 03/25/2004, 10:34 AM

I understand and the answer is the same :-)
The Grid simply needs to know which of the search fields you are using and therefore you need to specify this in the grid parameter definition. Otherwise {fieldname} is just a word without any meaning.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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