I am trying to create a prompt page that allows me to select between 2 different pages on the report.
Both pages use the same query but have different outputs for uploading purposes.
Please let me know if this is not clear..
thanks in advance for the help
And you want the prompt to control which page is rendered, correct?
If so, then you can use the render property on each of the pages and create a prompt control with static choices for the user to select from.
Let's say your parameter is called 'SelectedPage' and you put two static choices in the prompt control such as 'PageA' and 'PageB'.
You would then create either boolean or string variable to control the page rendering. Let's say a boolean variable called RenderPageA is created with an expression:
ParamValue(SelectedPage) = 'PageA'
You would then assign that render variable to the page and indicate it should render when true. Repeat the same thing with another boolean variable to render page b. You could also use a single string variable with values PageA and PageB and use that same variable as the render variable for the pages, but on each indicating the appropriate value to render for.
Thanks Lynn....if you can, can you provide steps on how to do this?
I am pretty new to Cognos and reporting as a whole.
Thanks for ur time
Hi Ruzvman - Lynn has given you all the steps that you need, but if you're new to Cognos that might not be obvious. It's difficult to be much more specific on here as you're limited to the attachments that you can add to a post. If I get time tonight I'll write something and add it to my blog...then I'll stick a link on here.
Quote from: Ruzvmun on 04 Dec 2014 09:03:53 AM
Thanks Lynn....if you can, can you provide steps on how to do this?
I am pretty new to Cognos and reporting as a whole.
Thanks for ur time
The report studio user guide contains step by step information on creating a prompt page and using static choices. It also has the necessary details on creating variables to use for rendering.
Quote from: BigChris on 04 Dec 2014 10:14:22 AM
Hi Ruzvman - Lynn has given you all the steps that you need, but if you're new to Cognos that might not be obvious. It's difficult to be much more specific on here as you're limited to the attachments that you can add to a post. If I get time tonight I'll write something and add it to my blog...then I'll stick a link on here.
Thank Chris..you are right..I am new to Cognos..I was able to figure out how to add static values. Whatever you can add will be appreciated.
Thanks again mate!!
Quote from: Lynn on 04 Dec 2014 12:22:36 PM
The report studio user guide contains step by step information on creating a prompt page and using static choices. It also has the necessary details on creating variables to use for rendering.
Thanks Lynn..I have managed to figure that out..
'preciate ur time
Hi,
This is a little more rushed than I might have liked - I've crashed this together this morning. Take a look and let me know if any of it doesn't make sense:
http://cognostips.weebly.com/blog/optional-pages (http://cognostips.weebly.com/blog/optional-pages)
C
Quote from: BigChris on 05 Dec 2014 02:51:45 AM
Hi,
This is a little more rushed than I might have liked - I've crashed this together this morning. Take a look and let me know if any of it doesn't make sense:
http://cognostips.weebly.com/blog/optional-pages (http://cognostips.weebly.com/blog/optional-pages)
C
Chris,
Been using ur information for a couple of days on even some old reports I had created and its been great..
Thanks for ur priceless efforts..much appreciated mate