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.
Anyone know how to make the border on this grand total look decent?
TABLE FILE CAR
SUM
CAR
BODYTYPE
LENGTH
WIDTH
FUEL_CAP
WEIGHT
WEIGHT
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
GRID=ON,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
ENDSTYLE
END
This message has been edited. Last edited by: Kerry,
TABLE FILE CAR
SUM
CAR
BODYTYPE
LENGTH
WIDTH
FUEL_CAP
WEIGHT
WEIGHT
ON TABLE SUBFOOT
" "
"TOTAL <ST.WEIGHT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
-* GRID=ON,
$
TYPE=TABFOOTING,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-LEFT=LIGHT,$
ENDSTYLE
END
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
BORDER-BOTTOM i can never get to work ever! i want double underlines under subtotals... never happens! never! BORDER-BOTTOM-STYLE=DOUBLE is what the doc says. ha!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I think that some of these things actually have to do with what I call the 'border wars'. They have to make decisions when elements touch each other as to how to handle the borders:
1. If both had the same border, do you double the border or combine them as one? 2. If only one of the elements has a border and the other doesn't, who wins (hence the war...)?
etc. etc.
Now, if I could actually figure out the rules, maybe I could work around it. I can't find consistency at all. And... even if there are rules I can say I think there are bugs. Because sometimes my right most columns which have nothing to the right of them (well duh!) don't get their borders painted. Then I remove a sub-element (which doesn't abet on the right - only on the top or bottom) and bingo the border is back. So, for the most part I try to stick to grids which seem to be more consistent. However, in the case of the grandtotal it seems that even the grid isn't quite right.
If my memory serves me right, the options for BORDER-STYLE are different depending on the output format HTML vs PDF. HTML offers a few more options which are not supported by PDF. However, I am not sure if the double border is supported by PDF or not.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Do you want something like this? If so, add a background color (I used GRAY) and a bold style for my GRANDTOTAL while using COLUMN-TOTAL. ... No Borders...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Yes, actually there is a "BY CAR" in there. However, that's not the reason that the TOTAL is on a line above the total VALUES.
Try your code twice, once with "WHERE CAR EQ 'BMW'" and once without the WHERE statement. You'll see the difference. It's due to the width of the first colum, CAR, column. So, with that in mind, you can (and I've done this before) increase the width (SQUEEZE) of the first column to accomodate the word "TOTAL".
TYPE=REPORT, COLUMN=(FIRST COLUMN), SQUEEZE=1.0,$
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Originally posted by Doug: Yes, actually there is a "BY CAR" in there. However, that's not the reason that the TOTAL is on a line above the total VALUES.
Try your code twice, once with "WHERE CAR EQ 'BMW'" and once without the WHERE statement. You'll see the difference. It's due to the width of the first colum, CAR, column. So, with that in mind, you can (and I've done this before) increase the width (SQUEEZE) of the first column to accomodate the word "TOTAL".
TYPE=REPORT, COLUMN=(FIRST COLUMN), SQUEEZE=1.0,$
I think you need both - the BY and the column to be wide enough. Without the BY they necessarily put it up one row - probably because they assume that every column can be totaled where as with a BY, the BY column would not be summed up.
It's a combination of things. Try the following code with and without the "BY CAR" or "WHERE CAR EQ 'BMW'" or "TYPE=REPORT, COLUMN=CAR, SQUEEZE=1.0, BACKCOLOR=RGB(255 255 210),$" or lines (one at a time).
TABLE FILE CAR
PRINT BODYTYPE LENGTH WIDTH FUEL_CAP WEIGHT
BY CAR
WHERE CAR EQ 'BMW'
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, GRID=ON,$
TYPE=REPORT, FONT='TIMES NEW ROMAN', SIZE=10,$
TYPE=REPORT, COLUMN=CAR, SQUEEZE=1.0, BACKCOLOR=RGB(255 255 210),$
TYPE=GRANDTOTAL, BACKCOLOR=GRAY, STYLE=BOLD,$
ENDSTYLE
END
See what works the best for you in your requirement.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I'd look at the results of a search for "total line". You can look at what I got as a result of that search here. I don't know what else to say and am a bit cramped for time at the moment. Good Luck, Doug
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005