COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: lebronjames on 28 Jan 2009 05:22:40 PM

Title: Conditional blocks and Tabbed prompts
Post by: lebronjames on 28 Jan 2009 05:22:40 PM
Hi everyone,
I'm trying to create some tabbed prompts for my users. To do this, I needed to use a conditional block with a string variable to switch between the two tabs. I used HTML items as tabs.

Now I'm trying to have tabbed prompts within tabbed prompts, which requires nested conditional blocks also. But the whole thing seems jumbled now.

I guess my question is: Has anyone tried to have nested tabbed prompts and if so, did it work well? Also, how was the report performance affected?

Second, can I cascade prompts across tabs? Please help. Thanks.
Title: Re: Conditional blocks and Tabbed prompts
Post by: Shailaja0520 on 18 Feb 2009 07:10:29 AM
Can u Pls sharehow u have done the tabbed prompts.(Html code)
Title: Re: Conditional blocks and Tabbed prompts
Post by: Sunchaser on 21 Feb 2009 06:24:20 PM
Hi,

I've tried and tested tabbed prompt, but if I correctly remember the problem came when some parts were hidden (some value-prompt were hidden in some tabs) when switching between tabs, especially for cascading.
Finally, I've decided to put all the necessary objects in a block with the property "Size and overflow" set to a fixed size and "content is clipped". Inside, I've reorganized the objects from left to right as if the user was going to scroll horyzontally, as in a storyboard of a film, but I put a javascript code for each time that the user click on a "tab" that makes "silently" the scroll (to the right or left) with some functions like "scrollIntoView(...)", etc ...
So, there was no objects really hidden, and everything (like cascading) was working.

Now, I've prefered used js libraries for real dhtml integrated in cognos pages, even if it's not free libraries and lot of work to get it work on cognos sometimes ... but better results.