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.
Is there in WebFOCUS a posibility to span the first line of the heading for more than one column and for every column under that big heading to set a heading by its own?
E.g. we have the neccessity to have a heading lets call "Europe" span over more than one column named "Germany", "France", "Italy", ... We must not use the headings like "Europe, Germany" (in Excel you do that by "concatenate cells")
... or in html code:
Europe
Germany
Italy
France
Thanks a lotThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6, 7.7 Windows, All Output formats
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010
Michael, by "Heading" do you mean the column title?
There is no "out-of-the-box" support for that in WebFOCUS that I know of.
When faced with a need like that in HTML, I've had to resort to the use of the actual report HEADING to try and fake that, or in some cases a SUBHEAD. A combination of HEADALIGN=BODY, COLSPAN=m in the Style sheet section will keep you going.
An "easier" approach would be possible if "Europe" existed as an actual value in your table (or you can make it happen with a DEFINE). In that case, you could use ACROSS to have a similar effect?
DEFINE FILE CAR
CONTINENT/A20 = IF COUNTRY EQ 'JAPAN' THEN 'ASIA' ELSE 'EUROPE';
END
TABLE FILE CAR
SUM DEALER_COST
BY CAR
ACROSS CONTINENT AS ''
ACROSS COUNTRY AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, JUSTIFY=CENTER, $
END
I think the HEADALIGN option on the line above it is important. But I think it was a little ornery depending on whether it was html or pdf.This message has been edited. Last edited by: John_Edwards,
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
COLSPAN is also supported with PDF, just can't remember the WebFOCUS release it was introduced, but the code below works in 7.7.03 (possibly with 7.6.nn, too).
Cheers, Mika
SET PAGE = NOPAGE
TABLE FILE CAR
SUM SALES
DEALER_COST
RETAIL_COST
BY COUNTRY
BY CAR
BY MODEL
HEADING
"Car Sales Report<+0>&DATEDMYY"
" "
"Car Details<+0>Dollar Details"
" "
ON COUNTRY SUBFOOT
"Total Dollars:<ST.SALES<ST.DEALER_COST<ST.RETAIL_COST"
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=10, SQUEEZE=ON, $
TYPE=HEADING, HEADALIGN=BODY, $
TYPE=HEADING, LINE=1, ITEM=1, COLSPAN=4, SIZE=12, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=2, COLSPAN=2, SIZE=8, JUSTIFY=RIGHT, $
TYPE=HEADING, LINE=3, ITEM=1, COLSPAN=3, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=3, ITEM=2, COLSPAN=3, JUSTIFY=LEFT, $
TYPE=SUBFOOT, HEADALIGN=BODY, STYLE=BOLD, $
TYPE=SUBFOOT, LINE=1, ITEM=1, COLSPAN=3, JUSTIFY=RIGHT, $
ENDSTYLE
END
-RUN
WebFOCUS 7.6.x PMF 5.2.x
Posts: 58 | Location: Sydney, Australia | Registered: April 22, 2005
If I remember correctly, support in PDF for HEADALIGN=BODY and all the niceties that come with it were introduced in WF 7.6.11.
What I've liked the most about this is that I can now easily position SUBFOOT elements just by using appropriate sport markers (<+0> ) instead of resorting to POSITION=n.
This is a nice technique for headings, footings etc., but after 25 years of (Web)FOCUS one thing I can't now do is indent or right-justify the text for a SUBTOTAL.
Why is it that we always seem to have to compromise on some functionality that should "just work" ?
TABLE FILE CAR
SUM DEALER_COST AND RETAIL_COST
ACROSS SEATS
BY COUNTRY
BY CAR
BY MODEL
ON COUNTRY SUBTOTAL AS 'Total: '
ON TABLE SET STYLE *
TYPE=SUBTOTAL, BY=COUNTRY, BACKCOLOR=SILVER, $
TYPE=SUBTOTAL, BY=COUNTRY, OBJECT=TEXT, ITEM=1, JUSTIFY=RIGHT, $ WebFOCUS doesn't care!
TYPE=GRANDTOTAL, BACKCOLOR=GREY, $
TYPE=GRANDTOTAL, OBJECT=TEXT, ITEM=1, JUSTIFY=RIGHT, $ WebFOCUS doesn't care either!
ENDSTYLE
END
Well, the alignment does work up to a certain point:
TABLE FILE CAR
SUM DEALER_COST AND RETAIL_COST
ACROSS SEATS
BY COUNTRY
BY CAR
BY MODEL
ON COUNTRY SUBTOTAL AS 'Total: '
ON TABLE SET STYLE *
TYPE=SUBTOTAL, BY=COUNTRY, BACKCOLOR=SILVER, JUSTIFY=RIGHT, $
TYPE=GRANDTOTAL, BACKCOLOR=GREY, JUSTIFY=RIGHT, $
ENDSTYLE
END
But then it messes up the alignment of each individual column although if data elements are right-justified then this should not matter.
Although not as easily addressable as SUBFOOT and SUBHEAD, some styling of SUBFOOT is possible in the StyleSheet:
TABLE FILE CAR
SUM DEALER_COST
RETAIL_COST
ACROSS SEATS
BY COUNTRY
BY CAR
BY MODEL
ON COUNTRY SUBTOTAL AS 'Total: '
ON TABLE SET STYLE *
TYPE=SUBTOTAL, BY=COUNTRY, BACKCOLOR=SILVER, $
TYPE=SUBTOTAL, BY=COUNTRY, COLUMN=COUNTRY, JUSTIFY=RIGHT, $
TYPE=SUBTOTAL, BY=COUNTRY, COLUMN=RETAIL_COST(2), STYLE=BOLD+ITALIC, $
TYPE=GRANDTOTAL, BACKCOLOR=GREY, $
TYPE=GRANDTOTAL, COLUMN=COUNTRY, JUSTIFY=RIGHT, $
ENDSTYLE
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007