COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: pooja on 26 Apr 2010 10:27:22 AM

Title: prompt showing only one value..????
Post by: pooja on 26 Apr 2010 10:27:22 AM
we are working on report using stored procedure (including prompt)
while using prompt on report---it is showing only one value. i.e we have more than
100 company name,.....but prompt is giving only one company name.
is there any way to have all the names??

thak you so much in avance
Title: Re: prompt showing only one value..????
Post by: MFGF on 26 Apr 2010 10:39:03 AM
Hi,

How has the prompt been coded?  Do you have a query driving the list of company names for the prompt? If so, how is it retrieving data?

MF.
Title: Re: prompt showing only one value..????
Post by: pooja on 26 Apr 2010 10:46:31 AM
we have define the QS in FM like-

# prompt('Company_Name','char','ABC')#

and works fine. but while working on report studio......prompt gives only one company name i.e 'ABC'
Title: Re: prompt showing only one value..????
Post by: MFGF on 26 Apr 2010 10:54:44 AM
OK - so it is a default prompt rather than a prompt you have coded into the report?

Where are the values for Company_Name being derived - from the stored procedure or from a different query subject?

MF.
Title: Re: prompt showing only one value..????
Post by: pooja on 26 Apr 2010 10:58:14 AM
COMPANY_NAME derived form stored procedure. like we have procedure for comapny which includes comp_nname, comp_add, comp_zip, comp_city and so on
Title: Re: prompt showing only one value..????
Post by: MFGF on 26 Apr 2010 11:32:05 AM
Does the stored procedure retrieve all companies?  I'd guess it is limited to retrieving one, which will make it unsuitable for use in a value prompt.

I suspect you will need to resort to adding your own prompt into the report, feeding the list of company names from a separate query driven from either an unfiltered stored procedure or normal SQL.

MF.
Title: Re: prompt showing only one value..????
Post by: pooja on 27 Apr 2010 09:28:54 AM
I am sorry ...i am not getting 100%........
Title: Re: prompt showing only one value..????
Post by: MFGF on 27 Apr 2010 09:42:07 AM
Hi,

How has your stored procedure been written?  Will it retrieve a list of all companies or does it retrieve only one company?

If it does not retrieve a list of all companies, it will not be suitable for driving the list of items for your company prompt.

MF.