COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: abcuser on 18 Sep 2015 03:44:24 AM

Title: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 18 Sep 2015 03:44:24 AM
Hi,
using Cognos BI 10.2.1 Report Studio. I would like to flip text from horizontal to vertical orientation in columns inside crosstab object to preserve as much space as possible.

See  attachment print-screen.
Regards
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: BigChris on 18 Sep 2015 04:03:00 AM
Click on the title for your columns, then in the Properties panel go to the Font & Text area and select Direction & Justification. Go to the Writing mode and select Top to Bottom, right to left
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 18 Sep 2015 05:05:42 AM
Thanks for help. I tested, but it looks like your suggested setting has no effect. Any idea?
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: Lynn on 18 Sep 2015 06:43:55 AM
What output format are you trying to produce? I vaguely recall that the orientation works only in HTML but not other output types. I might be wrong or it may have changed since I last tried but something to check in any case.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 18 Sep 2015 07:32:32 AM
Output is HTML.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: Lynn on 21 Sep 2015 02:33:53 AM
I tried what Chris suggested and it works exactly right for me in HTML. I am on 10.2.2 but this functionality has been around for a long time so not sure what your issue is. Perhaps you should describe your layout and requirement in more detail? My test is a simple crosstab with one node on rows, one on columns with the text set to vertical and then one measure at the intersection.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 22 Sep 2015 03:42:51 AM
Quote from: Lynn on 21 Sep 2015 02:33:53 AM
My test is a simple crosstab with one node on rows, one on columns with the text set to vertical and then one measure at the intersection.
Now I created new crosstab with exactly what you suggested, one member on rows and one member on columns and one measure in intersection. Clicked on column's member, did as BigChris suggested, and it looks like this setting does not have any effect.

Is there some additional setting that I must set like Positioning | Size & Overflow to set width to very small number or something to force it to flip a text? (by the way I have tried to set width to 10 px and this settings also has no effect)
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: BigChris on 22 Sep 2015 04:15:41 AM
I've tried it with both the column heading and the row heading and it's worked fine for both of those.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 22 Sep 2015 07:53:40 AM
Hi,
now I have recorded screencast and save it in gif file. Please see 10 second video what I did and to see this setting has no effect.
Regards
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 23 Sep 2015 06:06:07 AM
According to my previous post - see attached screencast - one possibility is it is a bug in Cognos 10.2.1 fixpack 6 I currently have installed. Do you think it is a bug or did I missed some setting?

Can someone please send me a print-screen of resulted report in Cognos Viewer. I may need this when reporting a PMR.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: Lynn on 23 Sep 2015 07:13:05 AM
Quote from: abcuser on 23 Sep 2015 06:06:07 AM
According to my previous post - see attached screencast - one possibility is it is a bug in Cognos 10.2.1 fixpack 6 I currently have installed. Do you think it is a bug or did I missed some setting?

Can someone please send me a print-screen of resulted report in Cognos Viewer. I may need this when reporting a PMR.

I have 10.2.1 Express and it works fine as shown in the attached over a relational package as well as over a dimensional package.

I also have 10.2.2 FP 2 and it works fine, appearing the same as in the attached.

I'm not sure if it is a bug or not. I've used this in the past over older versions and different data sources and not had an issue other than that it doesn't work in PDF.

Are you using a supported browser?

Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: abcuser on 23 Sep 2015 08:17:26 AM
Quote from: Lynn on 23 Sep 2015 07:13:05 AM
Are you using a supported browser?
That's it. I am using Firefox 24 ESR, also tested with Firefox 38 ESR both officially supported by Cognos BI. Non of them this orientation is working. But I executed report created in Internet Explorer 11 and it works fine. All browsers tested on Windows 7. So it looks like a bug...

Lynn, can you please write what is your browser and operating system name/version?
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: BigChris on 23 Sep 2015 08:30:00 AM
Good catch Lynn! I get various things not working properly in anything other than Internet Explorer, so I use that all the time now.
Title: Re: How to set vertical text orienation in columns inside crosstab?
Post by: nsaxena on 23 Sep 2015 08:53:52 AM
Tried and faced many similar issues in non IE browsers even though it is mrentioned it is supported but some features does not work properly.

Cognos works best in IE. Microsoft rules sometime!!!