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] Display SUBHEAD on top of ACROSS Fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Display SUBHEAD on top of ACROSS Fields
 Login/Join
 
Platinum Member
posted
Does anyone know how to display the subhead (ON COUNTRY SUBHEAD) to be on top of the across fields (ACROSS BODYTYPE)? Or can someone point me in the right direction.

Below is a sample using the car file. I just put some code together so it might be completely formatted.

SET HIDENULLACRS=ON

TABLE FILE CAR
SUM
DEALER_COST AS ''

BY COUNTRY  AS ''
BY CAR      AS ''
BY MODEL    AS ''
ACROSS BODYTYPE AS ''

ON COUNTRY PAGE-BREAK 
ON TABLE SUBHEAD
"PAGE: <TABPAGENO"
"car_report.fex"
" "
"CAR REPORT"
"Data as of: &MDYY"
" "
"COUNTRY<+0>CAR<+0>MODEL"
" "
ON COUNTRY SUBHEAD
"<LENGTH <+0> <WIDTH <+0> <HEIGHT <+0> <WEIGHT "
"Parent Product Lot: "
" "
ON COUNTRY SUBFOOT
" "
" "
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='LETTER',
     LEFTMARGIN=0.1500000,
     RIGHTMARGIN=0.15000000,
     TOPMARGIN=0.000000,
     BOTTOMMARGIN=0.000000,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
	 HEADPANEL=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=9,
     COLOR=BLACK,
     BACKCOLOR=NONE,
     STYLE=NORMAL,
$

TYPE=TABHEADING, HEADALIGN=BODY,$
TYPE=TABHEADING, LINE=1, ITEM=1, OBJECT=TEXT,  COLSPAN=1, JUSTIFY=LEFT,$
TYPE=TABHEADING, LINE=1, ITEM=1, OBJECT=FIELD, COLSPAN=1, JUSTIFY=LEFT,$
TYPE=TABHEADING, LINE=2, ITEM=1, OBJECT=TEXT, COLSPAN=8,  JUSTIFY=RIGHT,$
TYPE=TABHEADING, LINE=3, COLSPAN=8, JUSTIFY=RIGHT,$
TYPE=TABHEADING, LINE=4, COLSPAN=8, JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=5, COLSPAN=8, JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=6, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=1, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=2, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=3, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=4, SIZE=9, COLSPAN=4, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=5, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=6, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=7, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=8, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $

TYPE=TABHEADING, LINE=8, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=2, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=1, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=2, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=3, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=4, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $

TYPE=SUBFOOT, LINE=1, COLSPAN=8, JUSTIFY=LEFT,$
TYPE=SUBFOOT, LINE=2, COLSPAN=8, JUSTIFY=LEFT,$

END
-EXIT  


Thanks,
prodrigu

This message has been edited. Last edited by: Kerry,


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
There's no way to get Subheading above the Across titles. The only way to do this is to put the SUBHEAD lines in the HEADING, which shouldn't be a problem in your code because the example you provided has a page break on the SUBHEAD column.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Below is an example of what i would like the report to look like.



Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Platinum Member
posted Hide Post
Francis,

How would I go about adding the SUBHEAD in the HEADING? I only want to show the heading on the top of 1st page and the SUBHEAD needs to change on COUNTRY.

Can you please show me an example? Or point me to a forum that shows what you are talking about.

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Platinum Member
posted Hide Post
Can someone please help me or point me to a forum that will show what Francis is talking about putting the SUBHEAD lines in the HEADING?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Virtuoso
posted Hide Post
I think this is what Francis meant:
-DEFAULT &OUTPUT = 'HTML'
-SET &HEADLINE = IF &OUTPUT EQ 'EXL2K' THEN 'PAGE: <TABPAGENO' ELSE ' ';

SET HIDENULLACRS=ON

TABLE FILE CAR
SUM
DEALER_COST AS ''

BY COUNTRY  AS ''
BY CAR      AS ''
BY MODEL    AS ''
ACROSS BODYTYPE AS ''

ON COUNTRY PAGE-BREAK 
ON TABLE SUBHEAD
"&HEADLINE"
"car_report.fex"
" "
"CAR REPORT"
"Data as of: &MDYY"
" "
"COUNTRY<+0>CAR<+0>MODEL"
" "
HEADING
"<LENGTH <+0> <WIDTH <+0> <HEIGHT <+0> <WEIGHT "
"Parent Product Lot: "
" "
ON COUNTRY SUBFOOT
" "
" "
ON TABLE PCHOLD FORMAT &OUTPUT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='LETTER',
     LEFTMARGIN=0.1500000,
     RIGHTMARGIN=0.15000000,
     TOPMARGIN=0.000000,
     BOTTOMMARGIN=0.000000,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     HEADPANEL=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=9,
     COLOR=BLACK,
     BACKCOLOR=NONE,
     STYLE=NORMAL,
$

TYPE=TABHEADING, HEADALIGN=BODY,$
TYPE=TABHEADING, LINE=1, ITEM=1, OBJECT=TEXT,  COLSPAN=1, JUSTIFY=LEFT,$
TYPE=TABHEADING, LINE=1, ITEM=1, OBJECT=FIELD, COLSPAN=1, JUSTIFY=LEFT,$
TYPE=TABHEADING, LINE=2, ITEM=1, OBJECT=TEXT, COLSPAN=8,  JUSTIFY=RIGHT,$
TYPE=TABHEADING, LINE=3, COLSPAN=8, JUSTIFY=RIGHT,$
TYPE=TABHEADING, LINE=4, COLSPAN=8, JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=5, COLSPAN=8, JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=6, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=1, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=2, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=3, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=4, SIZE=9, COLSPAN=4, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=5, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=6, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=7, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=7, OBJECT=TEXT, ITEM=8, SIZE=9, COLSPAN=1, JUSTIFY=CENTER, $

TYPE=TABHEADING, LINE=8, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=2, COLSPAN=8, JUSTIFY=LEFT,$

TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=1, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=2, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=3, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $
TYPE=SUBHEAD, BY=CHILD_PRD_N, LINE=3, OBJECT=FIELD, ITEM=4, SIZE=9, COLSPAN=1, JUSTIFY=LEFT, $

TYPE=SUBFOOT, LINE=1, COLSPAN=8, JUSTIFY=LEFT,$
TYPE=SUBFOOT, LINE=2, COLSPAN=8, JUSTIFY=LEFT,$

END


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Gamp,

Thank you so much!!!! This is what I was looking for. Thank you too Francis Mariani...

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report 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] Display SUBHEAD on top of ACROSS Fields

Copyright © 1996-2020 Information Builders