COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: pooja on 20 Apr 2010 12:37:54 PM

Title: calling Prompt(pick list) stored procedure..????
Post by: pooja on 20 Apr 2010 12:37:54 PM
how to call propmt procedure in report stored procedure????????? ???

here are the explanation--

-we have 7- stored procedure for 7-different reports.
-ALSO we have other 8-different procedure for prompt value(pick list)
-Now QUESTION is HOW to call/use these pick list(prompt) procedure in report procedure.

please kindly & greatly thank you in advance.
Title: Re: calling Prompt(pick list) stored procedure..????
Post by: CognosPaul on 20 Apr 2010 01:59:39 PM
In framework manager, when you define the stored procedure, put prompt macros in all of the parameters for the SP.

So if your SP is something like sp_SalesReport('Year','Region') you would set up

#prompt('Year','integer')# in the year area and
#prompt('Region','string')# in the region area.

In the prompt page in RS you would simply create a value prompt with those same parameter names. Cognos will then pass the selected values for Year and Region to the SP as expected.
Title: Re: calling Prompt(pick list) stored procedure..????
Post by: pooja on 20 Apr 2010 03:46:42 PM
thank for your prompt response--

but still........how to use those pick list (prompt) procedure??
means...how to call/use....

thak you in advance
Title: Re: calling Prompt(pick list) stored procedure..????
Post by: pooja on 20 Apr 2010 09:39:05 PM
sorry  ....for asking again............

we have diff stored procedure for report and.....diff procedure for prompt (picklist).....

so how to call/use those prompt procedure in report ....

thank you again so much in advance.
Title: Re: calling Prompt(pick list) stored procedure..????
Post by: pooja on 21 Apr 2010 06:35:15 AM
 ???
Title: Re: calling Prompt(pick list) stored procedure..????
Post by: CognosPaul on 22 Apr 2010 04:36:38 AM
In order to use a stored procedure you need to first import it as an object into framework manager. If the procedure doesn't need any arguments you can use it almost like a regular query. Just import it, include it in the package, and pull the data as normal.

If the stored procedure has required arguments you can put a prompt macro into the Value column for each argument. You can then create a value prompt (with the source data being the previous stored procedure) with the parameter name being whatever you put in the prompt macro.