COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: bbtresoo on 03 Nov 2015 08:56:15 PM

Title: Move Layout Dynamically
Post by: bbtresoo on 03 Nov 2015 08:56:15 PM
Hi Guys,

My layouts ( list , crosstab, pie chart, chart) are displayed respecting a certain sequence
I'm looking a way to change that sequence dynamically

for instance
I have 4 boxes  on the first one I have a chart the second a list the third a crosstab   and the fourth a pie , now I need depending of an attributed sequence number coming from the UI display on the first box the crosstab instead of the list  etccc . Please the slightest idea will be very appreciated . Thank you
Title: Re: Move Layout Dynamically
Post by: Francis aka khayman on 03 Nov 2015 09:30:02 PM
most obvious is to use a conditional block. each block will contain one sequence choices.

if there are other ideas i would like to hear it as well
Title: Re: Move Layout Dynamically
Post by: bbtresoo on 04 Nov 2015 08:59:00 AM
Thank you I'll explore that lead
Title: Re: Move Layout Dynamically
Post by: BigChris on 04 Nov 2015 09:43:44 AM
Perhaps only a an extension on the same theme, but I'd be tempted to explore render variables (I'm into them at the moment  :D). You could put each of the elements in the four segments of your report, and have four prompts in your prompt page. Then the user can choose which element they want to see in which segment
Title: Re: Move Layout Dynamically
Post by: bbtresoo on 04 Nov 2015 12:20:44 PM
Hi Bigchris,

by segment you mean boxes? it'is not just a hide and show thing , it's especially how you deal with the sequence of display . It's a bit tough I'm running out of idea :-\
Title: Re: Move Layout Dynamically
Post by: Francis aka khayman on 04 Nov 2015 07:39:52 PM
bigchris meant to put ALL elements in ALL segments. using render variable, all but one will disappear depending on the choice which will also be shown in the desired sequence.

example:

1234     |         1234       |       1234   |   1234

depending on the choice:


2    |   3 |   1  | 4
Title: Re: Move Layout Dynamically
Post by: BigChris on 05 Nov 2015 02:47:18 AM
Exactly right khayman. I'm assuming you've got four segments/boxes in your report, and four formats to go into them. On your prompt page you could even present it as the four boxes, and in each box you could have a prompt for the different formats.

In your report page you could then put all of the formats into each segment. I'm not sure if you'd need to create a render variable for each possibility (too early in the morning and not enough coffee), but you'd then render each format in each box depending on the selections from the prompts.
Title: Re: Move Layout Dynamically
Post by: bbtresoo on 05 Nov 2015 01:16:54 PM
ok  ok tks it makes sense now , I'll explore that lead . Thank you guys