COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:06:37 AM

Title: Javascript to resize Tree Prompt
Post by: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:06:37 AM
Hi,

Does anyone know how to resize a Tree prompt using Javascript or some such?

My tree prompts take up too much space on opening (even though they are just showing the root member to begin with) and do not look ascetically pleasing.

Cheers,

Ricardo (used to reside in Tottenham, now Buenos Aires)
Title: Re: Javascript to resize Tree Prompt
Post by: MFGF on 11 Mar 2016 05:15:18 AM
Quote from: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:06:37 AM
Hi,

Does anyone know how to resize a Tree prompt using Javascript or some such?

My tree prompts take up too much space on opening (even though they are just showing the root member to begin with) and do not look ascetically pleasing.

Cheers,

Ricardo (used to reside in Tottenham, now Buenos Aires)

Ha! I found out last night who you are - nice to see you posting on here, my friend!! :) Henceforth I shall call you Ricardo! ;)

I don't (ever) do javascript, sadly, but just wanted to mention that it's not supported in Interactive Mode reports in Cognos Analytics (Cognos 11). You might save yourself some headaches later down the line if you can find alternatives at this point.

Cheers!

MF.
Title: Re: Javascript to resize Tree Prompt
Post by: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:25:06 AM
Hi,

Thanks for your reply.

I expect you are old enough to get the Ricky Villa reference.

There must be a way of resizing tree prompts as it looks pants.

When is Cognos 11 out (or is it already)...?  Any good or has IBM shafted it and it's time to jump ship ;)

Cheers,

Ricky
Title: Re: Javascript to resize Tree Prompt
Post by: BigChris on 11 Mar 2016 05:44:26 AM
I assume you've tried the Size & Overflow option...?
Title: Re: Javascript to resize Tree Prompt
Post by: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:49:07 AM
Yep. Ideally I would like it to dynamically change size without using scroll bars.
Title: Re: Javascript to resize Tree Prompt
Post by: MFGF on 11 Mar 2016 07:45:51 AM
Quote from: Ricardo Julio "Ricky" Villa on 11 Mar 2016 05:25:06 AM
Hi,

Thanks for your reply.

I expect you are old enough to get the Ricky Villa reference.

There must be a way of resizing tree prompts as it looks pants.

When is Cognos 11 out (or is it already)...?  Any good or has IBM shafted it and it's time to jump ship ;)

Cheers,

Ricky

You mean the 1981 reference? The FA Cup final? Extra time? Spurs against Man City? Nope - not ringing any bells ;)

You ought to be able to use Size & Overflow to size your prompt, but it will be a fixed size.

Cognos Analytics (Cognos 11) was released last December. I don't think "any good" even scratches the surface of its awesomeness! :)

Take a look if you have a spare 40 minutes...

https://ibm.box.com/CognosAnalyticsWebinarFeb16

Cheers!

MF.
Title: Re: Javascript to resize Tree Prompt
Post by: BigChris on 11 Mar 2016 08:15:25 AM
QuoteI don't think "any good" even scratches the surface of its awesomeness!

I hope you said that in Po from Kung Fu Panda's voice