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     [SOLVED] Merge column titles in table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Merge column titles in table
 Login/Join
 
Platinum Member
posted
Hello,
How can I add a column title above 2 columns titles, like you see in the following example:


My output is in HTML.
I already try the HEADALIGN option, but I think that is not the answer to my problem.

What I want is a way to group columns.

Thanks,
Carlos Dias

This message has been edited. Last edited by: Carlos Dias,


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Gold member
posted Hide Post
Carlos,

Have you tried using ACROSS for the Merge Title 1 and 2?

 
TABLE FILE CAR
SUM
DEALER_COST
SALES
ACROSS COUNTRY
END
 


Either that or put the column titles in the heading section and then HEADALIGN will work.


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Virtuoso
posted Hide Post
Carlos,

Try this:
  
-* File HEADALIGN1.fex
TABLE FILE CAR
HEADING
"Manufacturers<+>Financial<+0>Physical"
PRINT
RCOST
DCOST
MPG RPM
BY COUNTRY
BY CAR
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, $
TYPE=HEADING, LINE=1, ITEM=1, JUSTIFY=LEFT, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=3, JUSTIFY=CENTER, COLSPAN=2, $
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
Danny,
Works fine... but when I add the following style:
  
TYPE=REPORT,
     COLOR='BLACK',
     FONT='VERDANA',
     UNITS=IN,
     SIZE=7,
     SQUEEZE=ON,
     GRID=ON,
     PAGESIZE='A4',
$
TYPE=TITLE,
     style=bold,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(200 200 200),
     BORDER-BOTTOM-COLOR=RGB(200 200 200),
     BORDER-LEFT-COLOR=RGB(200 200 200),
     BORDER-RIGHT-COLOR=RGB(200 200 200),
$


The result is:


How can I set the style for the header?

Thanks,
Carlos Dias


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Gold member
posted Hide Post
Carlos,

Try this style sheet:
ON TABLE SET HTMLCSS OFF
ON TABLE SET STYLE *

TYPE=REPORT,
     COLOR='BLACK',
     FONT='VERDANA',
     UNITS=IN,
     SIZE=7,
     SQUEEZE=ON,
     GRID=OFF,
     PAGESIZE='A4',
$
TYPE=TITLE,
     STYLE=-UNDERLINE+BOLD,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(200 200 200),
     BORDER-BOTTOM-COLOR=RGB(200 200 200),
     BORDER-LEFT-COLOR=RGB(200 200 200),
     BORDER-RIGHT-COLOR=RGB(200 200 200),
$

TYPE=HEADING,
     STYLE=BOLD,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
     BORDER=LIGHT,
     BORDER-TOP-COLOR=RGB(200 200 200),
     BORDER-BOTTOM-COLOR=RGB(200 200 200),
     BORDER-LEFT-COLOR=RGB(200 200 200),
     BORDER-RIGHT-COLOR=RGB(200 200 200),
$

TYPE=HEADING, HEADALIGN=BODY, $
TYPE=HEADING, LINE=1, ITEM=1, JUSTIFY=LEFT, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=3, JUSTIFY=CENTER, COLSPAN=2, $


Note changes: HTMLCSS = OFF and GRID=OFF along with adding color to the Heading Section.


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Virtuoso
posted Hide Post
Carlos,

You hit the "Border Problem".
When you use "border" then "grid" is disabled.
Then WF inserts a blank line between the HEADING and the TITLES.

So, using your code, you have 2 possibilities.
1. BORDER
  
-* File HEADALIGN2.fex
TABLE FILE CAR
HEADING
"Manufacturers<+>Financial<+0>Physical"
PRINT
RCOST
DCOST
MPG RPM
BY COUNTRY
BY CAR
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(200 200 200),
     BORDER-BOTTOM-COLOR=RGB(200 200 200),
     BORDER-LEFT-COLOR=RGB(200 200 200),
     BORDER-RIGHT-COLOR=RGB(200 200 200),
     style=bold,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
$
TYPE=HEADING, LINE=1, ITEM=1, JUSTIFY=LEFT, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=3, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=REPORT,
     COLOR='BLACK',
     FONT='VERDANA',
     UNITS=IN,
     SIZE=7,
     SQUEEZE=ON,
-*     GRID=ON,
     PAGESIZE='A4',
$
TYPE=TITLE,
     style=bold,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(200 200 200),
     BORDER-BOTTOM-COLOR=RGB(200 200 200),
     BORDER-LEFT-COLOR=RGB(200 200 200),
     BORDER-RIGHT-COLOR=RGB(200 200 200),
$
ENDSTYLE
END


2. GRID
  
-* File HEADALIGN3.fex
TABLE FILE CAR
HEADING
"Manufacturers<+>Financial<+0>Physical"
PRINT
RCOST
DCOST
MPG RPM
BY COUNTRY
BY CAR
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, 
     style=bold,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
$
TYPE=HEADING, LINE=1, ITEM=1, JUSTIFY=LEFT, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=2, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=HEADING, LINE=1, ITEM=3, JUSTIFY=CENTER, COLSPAN=2, $
TYPE=REPORT,
     COLOR='BLACK',
     FONT='VERDANA',
     UNITS=IN,
     SIZE=7,
     SQUEEZE=ON,
     GRID=ON,
     PAGESIZE='A4',
$
TYPE=TITLE,
     style=bold,
     COLOR='WHITE',
     BACKCOLOR=RGB(115 150 191),
$
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
For cases like those, I've given up on WebFOCUS Style Sheets and had to resort to using SUBHEAD + external CSS styling instead. It gives finer control though is only applicable to HTML reports ... still, something to consider as an alternative.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Carlos,

Thanks for introducing me to the "minus.com" website.
So here are the 2 outputs:
1. BORDER

2. GRID

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [SOLVED] Merge column titles in table

Copyright © 1996-2020 Information Builders