COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: addpremkumar on 29 Aug 2005 05:44:51 AM

Title: Calling Stored Procedure From Report Net
Post by: addpremkumar on 29 Aug 2005 05:44:51 AM
Hi,

I Have a Stored Procedure in Framework Manager, which will return Dept Name for the given Dept No.

I want to Know how I can Call this Procedure in Design Time i.e., in Report Studio.

Can any one Help me....

Bye,
Prem.
Title: Re: Calling Stored Procedure From Report Net
Post by: Draoued on 29 Aug 2005 06:37:53 AM
Add the procedure to the package to be publish to Reportnet.
Re-publish the package to reportnet.
Now in ReportStudio, when add a new field (create a calcution or double click the field in the report) the procedure is available in the function tab, and can be used as all the others available functions.
Title: Re: Calling Stored Procedure From Report Net
Post by: sunil911 on 01 Sep 2005 05:35:47 PM
Correct me if I am wrong but doesn't the stored procedure become available after publishing as a query subject in ReportNet rather than as a function in the Functions tab?
Title: Re: Calling Stored Procedure From Report Net
Post by: addpremkumar on 02 Sep 2005 01:39:32 AM
Hi,
After publishing the stored procedure in FM. In report studio it was there in the table's list.
I dropped the required columns from procedure and the input parameter for the procedure automaticaly prompts me...

its working good...

One more clarification.....

I want the Input parameter entered for procedure at runtime to be stored in a temp variable..
For that I want to use the a new query in report studio
for Ex: for a table my SQL was as follows

select * from Tablename..

But for my procedure I can't write like that...is there any other way to get the prameters for my procedure By SQL

How can i call a procedure from the Query ie Tabular Sql in report studio

Thanks For ur guidence it helped me a lot....

Bye,
Prem