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.
Thanks for your reply, now I believe we can achieve vertical rotation in excel using CSS.
How to change the first BY in center in vertical alignment based on the 2nd BY data. (England should come in center not in the first value(jaguar))
ENGLAND JAGUAR JENSEN TRIUMPH
SET PAGE-NUM=NOLEAD
TABLE FILE CAR
SUM SALES/D10 AS ''
BY COUNTRY BY CAR AS ''
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $
TYPE=TITLE, STYLE=BOLD, $
TYPE=HEADING, STYLE=BOLD, HEADALIGN=BODY, $
TYPE=DATA,COLUMN = COUNTRY, JUSTIFY = CENTER, CLASS=headstyle, $
ENDSTYLE
END
SET HTMLFORMTYPE=XLS
-RUN
-HTMLFORM BEGIN
<style type="text/css">
.headstyle
{
mso-rotate:90;
vertical-align:bottom;
height:75;
}
</style>
!IBI.FIL.HOLD;
-HTMLFORM END
Not entirely sure what you are asking for, but my best guess is something like this -
I know that this is HTML format but it helps me explain something in the following example code. I am using the fact that all tabular report output is driven by rows and cells. We can use this knowledge to "invent" a new column where we can add a "rowspan" attribute - which is not available in normal WF styling.
Now that leaves us with a dilemma, we can hide the "extra" column using CSS within HTML output by adding "display:none;". Unfortunately this doesn't work when we "encourage" the output to think that it's XLS output using HMTLFORMTYPE.
To see what I mean, try the example code as is, and then change the default from HTML to XLS and see what the output in MS Excel looks like.
T
SET PAGE-NUM = NOLEAD
SET HOLDLIST = PRINTONLY
-DEFAULT &WFFMT = 'HTML'
TABLE FILE CAR
SUM SALES/D10
CNT.CAR WITHIN COUNTRY NOPRINT
COMPUTE C_COUNTRY/A60 = IF COUNTRY NE LAST COUNTRY THEN '</td><td class="headstyle" rowspan="'||EDIT(C3)||'">'||COUNTRY||'' ELSE ''; AS ''
BY COUNTRY NOPRINT
BY CAR
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=REPORT, GRID=ON, FONT='century gothic', SIZE=9, $
TYPE=TITLE, STYLE=BOLD, $
TYPE=HEADING, STYLE=BOLD, HEADALIGN=BODY, $
TYPE=REPORT, COLUMN=C_COUNTRY, SEQUENCE=1, CLASS=noshow, $
ENDSTYLE
END
-RUN
SET HTMLFORMTYPE=&WFFMT
-RUN
-HTMLFORM BEGIN
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.noshow {
display: none;
}
.headstyle {
mso-rotate:90;
vertical-align:bottom;
height:75;
transform: rotate(-180deg);
writing-mode: tb-lr;
}
</style>
</head>
<body>
!IBI.FIL.HOLD;
</body>
</html>
-HTMLFORM END
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Will it be possible to achieve in compound report using SET HTMLFORMTYPE=&WFFMT OPEN. or without HTMTABLE hold is there any option to achieve this logic