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     [CLOSED] Issue in Repeating Subhead

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Issue in Repeating Subhead
 Login/Join
 
Member
posted
Hi All,

I want to repeat by Subhead section each page, I got the following code from forum. But when I use this code I am getting the subhead is repeating twice when BY records starts in new page. Please help me on this to resolve.

 TABLE FILE GGSALES
HEADING
"Page <TABPAGENO"
SUM
	DOLLARS AS ''
	BUDDOLLARS AS ''
AND COMPUTE ROWCNT/I9 = LAST ROWCNT + 1; NOPRINT

BY REGION NOPRINT
BY ST AS ''
BY CITY AS ''
BY STCD AS ''
BY PRODUCT AS ''
BY TOTAL ROWCNT NOPRINT

ON ROWCNT SUBHEAD
"Region: <REGION "
WHEN REGION NE LAST REGION OR TABPAGENO NE LAST TABPAGENO;

-*WHERE READLIMIT EQ 1000

ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
     PAGESIZE='Letter',
     LEFTMARGIN=0.250000,
     RIGHTMARGIN=0.250000,
     TOPMARGIN=0.250000,
     BOTTOMMARGIN=0.250000,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=ON,
     FONT='TIMES NEW ROMAN',
     SIZE=9,
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
TYPE=SUBHEAD, BY=6, BACKCOLOR=YELLOW,$
ENDSTYLE
END 



Thanks,
Kumaravel.M

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 13 | Registered: September 29, 2008Report This Post
Member
posted Hide Post
Hi Kumaravel,
The issue with this is nothing but the Margin you have added with the Portrait. So just try to increase the TopMargin or Bottom Margin, you will get the output as you expected.
I just tried increasing the Bottom Margin in the style code as follows:
BOTTOMMARGIN=0.550000,

and got the expected output.
Hope this helps you.

Thank you,
Arun
 
Posts: 12 | Registered: July 01, 2008Report This Post
Silver Member
posted Hide Post
(belatedly, sorry)
If you don't want to change the margins, font size, etc, then COMPUTE a field to determine whether you want the subhead--instead of using OR in your WHEN.

 TABLE FILE GGSALES
HEADING
"Page <TABPAGENO"
SUM
	DOLLARS AS ''
	BUDDOLLARS AS ''
AND COMPUTE ROWCNT/I9 = LAST ROWCNT + 1; NOPRINT
AND COMPUTE PRINTSUBHEAD/A2V=IF (REGION NE LAST REGION) OR TABPAGENO NE LAST TABPAGENO THEN 'ON' ELSE ' '; NOPRINT

BY REGION NOPRINT
BY ST AS ''
BY CITY AS ''
BY STCD AS ''
BY PRODUCT AS ''
BY TOTAL ROWCNT AS ' '

ON ROWCNT SUBHEAD
"Region: <REGION "
WHEN (PRINTSUBHEAD EQ 'ON' );

ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     PAGESIZE='Letter',
     LEFTMARGIN=0.250000,
     RIGHTMARGIN=0.250000,
     TOPMARGIN=0.250000,
     BOTTOMMARGIN=0.250000,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=ON,
     FONT='TIMES NEW ROMAN',
     SIZE=9,
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
TYPE=SUBHEAD, BY=6, BACKCOLOR=YELLOW,$
ENDSTYLE
END 
 


WF: WebFocus 7.7.03
Data: Oracle, MSSQL, DB2
OS: Windows
Output: HTML/AHTML,PDF,EXL2K FORMULA, COMT
 
Posts: 43 | Registered: November 21, 2011Report 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     [CLOSED] Issue in Repeating Subhead

Copyright © 1996-2020 Information Builders