Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to rotate column title text 90 degrees on HTML report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to rotate column title text 90 degrees on HTML report
 Login/Join
 
Gold member
posted
Does anyone know of a technique (CSS or otherwise) that can be used to rotate column title text 90 degrees?

We have an extremely wide HTML report that seems to go out to the right forever and the column titles are making the report so wide.

DRV
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Virtuoso
posted Hide Post
Well I'm not sure about that, but how about just changing the TITLE on the Columns?

THISISAWIDECOLUMN AS 'THISISSHORT'

OR you can stack it like

THISISAWIDECOLUMN AS 'THISISA,WIDE,COLUMN'
which will display:

THISISA
WIDE
COLUMN
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Gold member
posted Hide Post
I shouldn't have been so quick to hit the submit button.

The titles are across values (Products) that are wide in most cases.
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Virtuoso
posted Hide Post
Well yes, that's a bit different....might try a DECODE if the products are consistent..
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
drv, i've never seen a website anywhere with tilted text, unless its an image. hmmm.
has anyone ?
there's always excel output, and let the user rotate the text in the across row.
or..if this is really important to you, make an image, a gif, for each productname, and rotate it 90. then define a variable
PRODNAME/A100='<img src="http://servername/images/' | MYPROD | '.gif">;
and then
SUM stuff ACROSS PRODNAME
and the character strings will be in order by the var MYPROD but will reference images that are the prod names, turned sideways.
Nuts, yes? I've done nuttier.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
If you are upgrading to 7.1 and want excel output you can use a template and have WebFOCUS populate the template and if the template has rotated titles then that is what the user would see. There are a lot of great features when using a template like pretecting fields from user changing them. I know this may not be what you are looking for but are words for thought.
 
Posts: 865 | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
say, tex, are you on 71?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Yeah I think Susannah is right, I've only seen verical text as immages.

But How about a pretty stupid idea?

Maybe create a function to take your field values and pop a comma between each character and use that?


..hey I said it was pretyy stupid... Wink
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Gold member
posted Hide Post
I actually found a site that has a javascript example of how to rotate text.

http://www.webreference.com/js/tips/000814.html

I guess my question now is: "Can you use a javascript to accomplish what this script does at report runtime?"
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Expert
posted Hide Post
SLICK! Thanks drv.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
hey drvander, I couldn't wait to try out your tip, and it ROCKS!

Here's how I did it using inline HTML:


DEFINE FILE CAR
MYCOUNTRY/A50 = '
' | COUNTRY | '
';
END
TABLE FILE CAR
PRINT CAR BY SEATS
ACROSS MYCOUNTRY
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='LETTER',LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,ORIENTATION=LANDSCAPE,$
TYPE=REPORT,FONT='ARIAL',SIZE=8,COLOR=
'BLACK',BACKCOLOR=RGB(255 255 224),
STYLE=NORMAL,TOPGAP=0.0,BOTTOMGAP=0.0,$
TYPE=DATA,FONT='ARIAL',SIZE=8,
COLOR='BLACK',BACKCOLOR=( RGB(255 255 224) RGB(210 180 140) ),
STYLE=NORMAL,$
END

This message has been edited. Last edited by: <Mabel>,
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Gold member
posted Hide Post
Awesome example, very cool! Thanks.

I didn't realize you could wrap div tag attributes around a single field, but I do now.
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Master
posted Hide Post
No, I am not on 7.1, Wanted to share this information.
 
Posts: 865 | Registered: May 24, 2004Report This Post
<JG>
posted
Try changing the define to this

MYCOUNTRY/A70 = '<div STYLE="writing-mode: tb-rl;filter: flipv fliph;">' | COUNTRY | '</DIV>';

The filter causes the text to read bottom to top and be left justified which I think is more logical from an English reading point of view

By the way this only works in IE.
 
Report This Post
Gold member
posted Hide Post
Wow, even cooler yet!

I agree that this text presentation is much easier to read.

This has some of our Developers real excited...
 
Posts: 38 | Location: Denver, CO | Registered: March 16, 2005Report This Post
Expert
posted Hide Post
JG, when i try your mode technique, with an SUM SALES BY CAR ACROSS MYCOUNTRY
my labels are all centered...i have tried justify=left, but i can't seem to make them all start from the top border of the report, all start from the same point?
I reference with TYPE=ACROSSVALUE,BY=MYCOUNTRY and i can turnthem red ok, but i can't make them all start from the same place.
Any ideas?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<JG>
posted
Susan the problem is a combination of using proportional fonts and space handling in HTML.

the solution is a compromise but is as follows (the length of NBS1 and the depth of the decode is dependant on the length of the across field in this case COUNTRY A10)

DEFINE FILE CAR
CP1/A11= COUNTRY ||'/';
CL/I5= POSIT(CP1, 11,'/',1,'I5') -1;
NBS1/A70=DECODE CL (9 '&|nbsp;'
8 '&|nbsp;&|nbsp;'
7 '&|nbsp;&|nbsp;&|nbsp;'
6 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
5 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
4 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
3 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
2 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
1 '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;'
ELSE '&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;' );
MYCOUNTRY/A180 = '<div STYLE="font: bold 12pt Courier;writing-mode: tb-rl;filter: flipv fliph; ">' | COUNTRY || NBS1 | '</DIV>';
END
 
Report This Post
<JG>
posted
POSTSCRIPTUM, Printing the output does not print the displayed output. Either to a printer or acrobat distiller. Only the fliph on the filter is applied. Without the filter it prints as expected.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to rotate column title text 90 degrees on HTML report

Copyright © 1996-2020 Information Builders