COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: nbailey on 24 Aug 2012 07:43:31 AM

Title: Field value not showing in Prompt drop down
Post by: nbailey on 24 Aug 2012 07:43:31 AM
I am having problem with an existing report that was working fine before.  this report has a prompt on a STATE field in the query subject.  When the report was run the prompt drop down would provide a selection of all states available for easy selection,  but now the prompt is blank and provides no state choices ?

I have recently updated  the existing package to add a couple of new fields to the same Query subject... this may not have anything to do with the problem but worth mensioning...

If I create a new report and create the same prompt on STATE the same problem is happening ... so I don't think the problem is in the report ... but in Cognos itself ...

Does anyone have any idea why my field would no be providing values to the prompt ???

see enclosure for details.
Title: Re: Field value not showing in Prompt drop down
Post by: Lynn on 24 Aug 2012 08:40:04 AM
Have you looked at the generated SQL? Has anything in your database changed?
Title: Re: Field value not showing in Prompt drop down
Post by: nbailey on 24 Aug 2012 11:09:17 AM
The only change to the database was that I added 4 new fields to the bottom of the same table that the date is on.  Generated sql looks fine and if I hard code the State in the filter it works fine... it is just getting the prompt to contain the state list ...
Title: Re: Field value not showing in Prompt drop down
Post by: Lynn on 24 Aug 2012 11:26:59 AM
Did you check the prompt properties in your Framework Model? Maybe it is looking somewhere it shouldn't for use and display information to generate the prompt list.
Title: Re: Field value not showing in Prompt drop down
Post by: nbailey on 24 Aug 2012 12:59:13 PM
Not sure where to look in framework manager for that ... enclosed is the framework manager properties for the State Field.   

One thing I did notice was that this field has a Usage value of Unknown... I changed that to Attribute ... but made no difference. 
Title: Re: Field value not showing in Prompt drop down
Post by: Lynn on 24 Aug 2012 01:14:15 PM
The prompt info properties are all the defaults so I think Cognos would just get a distinct list of that field to fill the generated prompt control. I don't see a reason why it won't. Did you look at the "Show Generated SQL/MDX" from the tools menu? Maybe that will show the query it is trying to use to fill the prompt and you'll spot a clue in there.

You could create your own prompt query and add a prompt control to the report, but that won't solve whatever problem is going on in your model.