COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sg24 on 14 Apr 2011 06:48:45 AM

Title: Default Selection in conditional blocks
Post by: sg24 on 14 Apr 2011 06:48:45 AM
Hi Folks,

I have a value prompt(radio button) in the report page and three lists defined in the conditional block for

1.Active
2.Inactive
3. Both

so when the user clicks on the Active the the first list gets displayd and Inactive , the second and etc.
I want Active to be default always when i run the report. I gave Active in default selection in the properties. But when i run the report , i the first list for Active is not getting displayed. I get a blank report. For inactive and both i get the data. Any idea what is the prob ?

Kindly suggest as this is urgent.

Thanks,
sg

Title: Re: Default Selection in conditional blocks
Post by: venkiatmaruthi on 14 Apr 2011 08:27:39 AM
I don't know you have used a render variable or not.
setting default value does not bring you the list1 in the main page. YOu have to create a render variable and apply to conditional block.

Hope this helped.
Title: Re: Default Selection in conditional blocks
Post by: Gopinath on 14 Apr 2011 10:07:15 AM
Setting default value as 'Active' and Auto-Submit to 'Yes' should disply Active list.

Do you use Re-Prompt button in your report page to refresh the report?
Title: Re: Default Selection in conditional blocks
Post by: sg24 on 15 Apr 2011 02:12:27 AM
Thank u for the reply.

I have not used reprompt button in the report page. I have cancel and finish buttons only. Also I created a render varaible and set the auto submit to "Yes". Still the same prob persists. Not sure as to why :-(

Plz Note: I use cognos Version 8.0

Thanks,
Sg
Title: Re: Default Selection in conditional blocks
Post by: sg24 on 15 Apr 2011 02:29:03 AM
I have a question. Can we use default selection, when there are static choices given.

Tried all the possible ways. With render variables , with conditional blocks etc,

I have three static choices defined. Active, Inactive , Both.

Once i give default selection as Active, the report gives a blank page for the first Active list.
Rest others it works fine.
Title: Re: Default Selection in conditional blocks
Post by: venkiatmaruthi on 15 Apr 2011 04:23:18 AM
It should work if you give default selection for static choices.
I think you are giving wrong name or you might be using static choices USE VALUE 1,2 and 3 and DISPLAY VALUE Active, Inactive and Both.
In the Default selection, you might have given Active. This wont work. You should give 1.

Hope this helps.
Title: Re: Default Selection in conditional blocks
Post by: prasaduk on 15 Apr 2011 05:03:03 AM
Change prompt button type to 'reprompt'  instead of 'Finish', unlock the Prompt button and add a text item to change the Text displayed from 'Reprompt' to 'Finish' run the report!
Title: Re: Default Selection in conditional blocks
Post by: sg24 on 15 Apr 2011 05:10:09 AM
Thank you for the response. It worked !  :)

Title: Re: Default Selection in conditional blocks
Post by: jahnavi on 15 Apr 2011 05:15:16 AM
Default Selection will solve your requirement. use the correct use value in the default selection list