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 -> ASP

 How to use a stored proc or #TempTable from SQL as datasource

Print topic Send  topic

Author Message
smalloy

Posts: 107
Posted: 03/29/2005, 10:29 AM

I have a hierarchical table that is set up like this (it populates a tree)

ID Parent
1 0
2 1
3 1
4 2
5 0

So if the parent is 0 it’s the root. I have a set of stored procs that return the entire tree or limit the user to the part of the tree that they are restricted to. My problem is that I don’t know how to get the temp table to the CCS form. I noted that a user used a stored proc to populate a listbox (http://forums.codecharge.com/posts.php?post_id=48800) But without the OUTPUT parameter I’m failing at every turn.

Any ideas? I’d be glad to post the stored procs if you’d like (they come in handy for message threads too with the caveat that they are limited to 32 threads deep).

Thanks!

_________________
Anything can be done, just give me time and money.
View profile  Send private message
smalloy

Posts: 107
Posted: 03/31/2005, 10:02 AM

Figured it out, I am an idiot.

Simply change the datasource to SQL, in the SQL window that appears enter the stored proc and pass any needed parameters and poof, your done.

Here's my SQL Statement:

sp_Get_Building_Hirearchy {pyr_ID}

As an asside it the parameters portion I set the pyr_ID to a URL parameter source.

Big problem resolved!
_________________
Anything can be done, just give me time and money.
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.