COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: maxchuie on 20 Mar 2014 02:26:04 PM

Title: prompts and report list on same report page - need to keep list from running 1st
Post by: maxchuie on 20 Mar 2014 02:26:04 PM
I have prompts and page on same report page.
I need to have the reports not run until the prompts are selected. is there a way to do this within the same report page


thx
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: navissar on 20 Mar 2014 03:05:20 PM
I wonder, if that's what you need, why not use a prompt page?
Anyway, create a variable that checks if parameters are all filled, and make it a render variable for the list - that'll do it.
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: bdbits on 20 Mar 2014 05:08:11 PM
It's a bother to have a prompt page when you have in-line prompts. Just another thing to maintain and keep in sync with your main page, especially if your page has a lot of carefully positioned and formatted elements and you want the consumer's experience consistent, not having something looking different the first time versus selecting new prompt values and rerunning.

It's very easy to do this.


So when the report first runs, the parameters will be null. This will make the value of the variable "No". Since that means the data container will not render, it will not run. Now when the user selects a new parameter(s) and submits (or it autosubmits), the value of the variable will change to "Yes". The report must then be rendered, so it will run with the selected values.

Hope you can follow this alright and it works for you, maxchuie.
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: navissar on 20 Mar 2014 05:26:00 PM
Hi bdbits,
Of course it's a hassle to maintain prompts inline as well as in prompt pages. That's why I use reference objects. You create your prompts once, put them in a named block, and just drag in a reference to this block on the second page. Hassle free, variables maintenance free. On some projects I even go the extra mile and just create one report with all possible prompts, reference it on every report (overriding irrelevant prompts) and boom: I have a single point of reference for all prompts.  8)
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: Francis aka khayman on 20 Mar 2014 08:32:30 PM
i once have an a  hole boss. No prompt page he says... then went on to describe the report functioning exactly how a report with prompt page functions.   :-\
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: maxchuie on 21 Mar 2014 09:13:52 AM
thanks all yes mine doe snot want a prompt page he wants them to be able to select prompts at any time.
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: bdbits on 21 Mar 2014 09:54:31 AM
Nimrod - yeah I can see that working. I actually use layout component references a lot for things common across my reports, but never thought much about using it within the same report. Interesting. I think I will still prefer to skip the prompt page and use render variables as needed, it is just more intuitive to me I guess. Six of one, half a dozen of the other. Cognos can accomodate everybody.  8)

khayman - steer your boss into stating his requirements and leaving implementation details to you. Then use the prompt page. :)
Title: Re: prompts and report list on same report page - need to keep list from running 1st
Post by: bdbits on 21 Mar 2014 09:56:10 AM
sorry for the double posting - maxchuie did you try any of the suggestions? are things working the way you want now?