CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Who i modify SQL in runtime in DataSource?

Print topic Send  topic

Author Message
Dario Cardoso
Posted: 02/22/2006, 4:57 AM

Hi,

I use Grid for List with Data Source Type = SQL and Data Source with SQL

select store_statuses.status_name, count(order_id) as qtdpedidos from store_orders where data>=current_date and data<=current_date and order_status_id=store_statuses.status_id group by store_statuses.status_name order by status_name

I like that in runtime before execute this SQL the must modify to dates of the period that i indicate, type:

s_data1 = '01/01/2006'
s_data2 = '12/31/2006'

How i proced for this???


Thanks,

Dario.

I use PHP
mamboBROWN


Posts: 1713
Posted: 02/22/2006, 8:40 PM

Dario Cardoso
How do you plan to get these dates to the page with the list?? Are you passing them as parameters in the URL (from a search form...)?? Are you using session variables??
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.