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.
I know COLSPAN is a HTML term, however is there a way to span multiple columns in the title without doing an "ACROSS" the columns I want to put a title above the regular column titles to tell the end users, that the columns below it are a part of a calculation. It seems like this would be possible even with PDF without going to the trouble of writing an ACROSS. Just seems like there would be something simple.
Currenly working @ Learning Circle Education Services Previously worked @ Nationwide Insurance Prod: WebFOCUS 7.6.11
If you are using DevStudio you can place the multiple columns in an alignment gride. With the alignment grid you can set the alignment cell size and left-, center- or right-justify the text.
COLSPAN should be respected for PDF output format. The keyword POSITION may be of use to you as well. Use the POSITION keyword with column notation (N1, C3, P6, or whatever) to position items in a HEADING over certain columns.
However, I have never tried/been able to force a column title to span more than one column. I should test this.
I hope this helps.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Here is a simple example using the CAR file which shows how to center some HEADING (or SUBHEAD) text across multiple columns.
The key here is to use the HEADALIGN=BODY setting for the HEADING and then use the WIDTH=#.## setting to control the width on each element in the HEADING. The example includes usage of the SQUEEZE=#.## setting for each column to make sure the column widths are always the same each time the report is run. I also found that you need to use the POSITION=P1 for the first HEADING text item because the BORDER around the HEADING will be wider than the columns if you do not use this command on one field.
TABLE FILE CAR PRINT CAR MODEL BODYTYPE SEATS BY COUNTRY HEADING "Made Where?<+0>General Car Information<+0>###" ON TABLE SET HTMLCSS ON ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, BORDER=LIGHT, SQUEEZE=ON, LEFTGAP=.025, RIGHTGAP=.025,$ TYPE=REPORT, COLUMN=COUNTRY , SQUEEZE=1.50,$ TYPE=REPORT, COLUMN=CAR , SQUEEZE=1.50,$ TYPE=REPORT, COLUMN=MODEL , SQUEEZE=2.50,$ TYPE=REPORT, COLUMN=BODYTYPE, SQUEEZE=1.50,$ TYPE=REPORT, COLUMN=SEATS , SQUEEZE=0.50,$ TYPE=HEADING, HEADALIGN=BODY, BORDER=ON,$ TYPE=HEADING, LINE=1, ITEM=1, POSITION=P1, WIDTH=1.50,$ TYPE=HEADING, LINE=1, ITEM=2, WIDTH=5.50, JUSTIFY=CENTER,$ TYPE=HEADING, LINE=1, ITEM=3, WIDTH=0.50, JUSTIFY=CENTER,$ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Thanks everyone, I will give these ideas a shot and repond with what I ended up using. I may take off Column titles and then just add then in heading under the main heading then I can position them just the way I want. Kinda of a hybrid of multiple ideas I have been given.
Thank you very much!
Currenly working @ Learning Circle Education Services Previously worked @ Nationwide Insurance Prod: WebFOCUS 7.6.11
DIV COUNT $ COUNT $
--- ----- ----------- ----- ---------------
CE 10 $493,700.00 10 $493,700.00
CORP 8 $436,500.00 8 $436,500.00
NE 7 $304,200.00 7 $304,200.00
SE 7 $390,400.00 7 $390,400.00
WE 9 $404,400.00 9 $404,400.00
is from the following focexec:
TABLE FILE EMPDATA
SUM
CNT.PIN AS 'COUNT'
SALARY AS '$'
CNT.PIN AS 'COUNT'
SALARY AS '$'
BY DIV
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='COURIER NEW',
SIZE=10,
$
TYPE=TITLE,
COLUMN=N1,
COLOR=RGB(51 51 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=N2,
COLOR=RGB(51 51 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=N3,
COLOR=RGB(51 51 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=N4,
COLOR=RGB(51 51 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=N5,
COLOR=RGB(51 51 153),
STYLE=BOLD,
JUSTIFY=CENTER,
$
ENDSTYLE
END
How can I get the report to look like this in HTML, where the phrase, "MOST RECENT STMTS" spans the 2nd and 3rd column, and the phrase "ALL HISTORICAL STMTS" spans the last 2 columns? Each phrase must be centered over the 2 columns it spans. It must look as if it is column title text, without any vertical gap or misalignment.
MOST RECENT STMTS ALL HISTORICAL STMTS
DIV COUNT $ COUNT $
--- ----- ----------- ----- ---------------
CE 10 $493,700.00 10 $493,700.00
CORP 8 $436,500.00 8 $436,500.00
NE 7 $304,200.00 7 $304,200.00
SE 7 $390,400.00 7 $390,400.00
WE 9 $404,400.00 9 $404,400.00
Thank you,
John
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006