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 -> General/Other

 stored procedure and search page

Print topic Send  topic

Author Message
DENSMA
Posted: 01/24/2005, 7:10 AM

is there anyway to use SP With CCS. search page to pass in parameter and get result back on grid page?
i can do this with DW but dunno how to with CCS..
here my sp sample
i get this working with DW and not sure how to do it with CCS...
im using asp or asp.net



CREATE Procedure [R search]
(
@AgentID varchar(50) = Null,
@Supervisor varchar(50) = Null,
@Manager varchar(50) = Null
)

As

Select
* from reportas

Where
(@AgentID Is Null Or AgentID = @AgentID)
And (@Supervisor Is Null Or Supervisor = @Supervisor)
And (@Manager Is Null Or Manager = @Manager )

Order By AgentID Asc,Supervisor Asc

Return(@@RowCount)
GO
peterr


Posts: 5971
Posted: 01/24/2005, 12:33 PM

Yes, you can open the Data Source property of your grid and change "Table" to "Procedure" and enter your procedure name, then create a parameter for each of your SP/search parameters.
There is no need to modify the search form.
_________________
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.

MS Access to Web

Convert MS Access to Web.
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.