COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: LOUM on 03 Nov 2011 12:28:51 PM

Title: Single Prompt prompting twice
Post by: LOUM on 03 Nov 2011 12:28:51 PM
Ok,

One more please. I have a prompt page that iis directed to my Fiscal Year prompt on the quuery. When I run the report i get a prompt for Fiscal year, i enter it, then I get the prompt page also. Why is the report looking twice for the single prompt?
Title: Re: Single Prompt prompting twice
Post by: Arsenal on 03 Nov 2011 02:00:32 PM
check that the query filter corresponding to the prompt has the same paramater as the prompt
Title: Re: Single Prompt prompting twice
Post by: LOUM on 03 Nov 2011 03:01:51 PM
Arsenal.

Yes they are the same, I am stumped. Is there a way to see the resources behind it? Or were it is going? Pulling from?
Title: Re: Single Prompt prompting twice
Post by: blom0344 on 03 Nov 2011 03:10:41 PM
Copy the report xml source code to a text editor and scan the xml for the parameter
Title: Re: Single Prompt prompting twice
Post by: LOUM on 03 Nov 2011 03:40:13 PM
Bloom thank you for the input. I can see a prompt for it in the code but I am not adept and deciphering the issue. Is there an easier way?
Title: Re: Single Prompt prompting twice
Post by: Bindiya on 03 Nov 2011 03:58:36 PM
Check all the queries where you referred that prompt.. incorrect spelling or change in case also would prompt 2nd time.
Title: Re: Single Prompt prompting twice
Post by: LOUM on 03 Nov 2011 04:01:34 PM
Diya,

Thank you, I am sitting here pulling my hair out..lol..

I have deleted all the filters and rebuilt them and I still get the same result, it is like whenever I choose the FY to filter it does it twice. All spelling correct. I have 2 other filters and they are not doing it. Can it be that it is the only one of the three filters that are required?
Title: Re: Single Prompt prompting twice
Post by: Bindiya on 03 Nov 2011 04:16:04 PM
A filter being required or optioinal will not give raise to such issues. Probably you can try the below steps to actually see what is giving raise to this issue.

1. Delete all the filters that use FY.
2. Take XML and search for that prompt (this ensures that no where this prompt is referred in the report filters)
3. Now run the report, as we deleted the FY from filters, it should not prompt 2nd time (jus to ensure once again)
4. Then add the filter once again (hope you are not typing the filter name, jus drag it from the parameters section.
5. Then run the report once again.
6. If you use FY in more than one filter, then keep running the report each time after adding the filter.
Title: Re: Single Prompt prompting twice
Post by: LOUM on 04 Nov 2011 08:57:59 AM
Diya,

Thank you, I did as you stated and it still did it. If I change it to an optional prompt similar to the other two it works fine. Thoughts?
Title: Re: Single Prompt prompting twice
Post by: Bindiya on 04 Nov 2011 11:08:12 AM
hum.. not sure.. but feel something else is wrong.. coz even if prompt is not mandatory and the filter is required, it wld automatically make the prompt as mandatory when running the report but wld not prompt twice..
Title: Re: Single Prompt prompting twice
Post by: LOUM on 07 Nov 2011 03:28:25 PM
That is why I am confused on this one. I am utilizing the report as I have it but, I want to understand the issue as well as it does not make sense.

;D