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] PDF Report Help - Formating (Repeating the Title)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PDF Report Help - Formating (Repeating the Title)
 Login/Join
 
Member
posted
Hi,
I am working on a compound report and I need the Title Row {Columns: Car Type|Country|Car|Model|Bodytype|Seats|Sales|Retail_Cost} to repeat each time the Car Type ( TYPE) Changes.

Just to make a compound PDF report, I have added the first and last step. You can ignore those steps. Just look at the GRID titled "Sample Report"

I had actually created 2 samples ( One in word -- a Desired Format, and another in PDF the existing one). But I dont know how to upload those sample documents here.


  


TABLE FILE CAR
SUM SEATS 
BY CAR
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
END

-* This is the step that I want help with
TABLE FILE CAR
HEADING
"SAMPLE REPORT"
PRINT 
COUNTRY 
CAR 
MODEL 
TYPE 
SEATS 
SALES 
RETAIL_COST
BY TYPE AS 'Car Type'
ON TYPE SUB-TOTAL 
ON TYPE SUBHEAD
"<TYPE"
ON  TYPE  NOSPLIT
ON TABLE SET PAGE-NUM OFF
ON TABLE SUBTOTAL SALES AS 'Total Sales'
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=INTERNAL,$
TYPE=HEADING, LINE=1, SIZE=12,FONT=TIMES NEW ROMAN,STYLE=BOLD+UNDERLINE,GRID=OFF,$
TYPE=HEADING, LINE=3, SIZE=9,FONT=ARIAL,STYLE=BOLD,OBJECT=TEXT,ITEM=1,$
TYPE=HEADING, LINE=3, SIZE=7,FONT=ARIAL,STYLE=BOLD,OBJECT=FIELD,ITEM=1,$
TYPE=HEADING, LINE=4, SIZE=9,FONT=ARIAL,STYLE=BOLD,OBJECT=TEXT,ITEM=1,$
TYPE=HEADING, LINE=4, SIZE=7,FONT=ARIAL,STYLE=BOLD,OBJECT=FIELD,ITEM=1,$
TYPE=HEADING, LINE=5, SIZE=9,FONT=ARIAL,STYLE=BOLD,OBJECT=TEXT,ITEM=1,$
TYPE=HEADING, LINE=5, SIZE=7,FONT=ARIAL,STYLE=BOLD,OBJECT=FIELD,ITEM=1,$
TYPE=TITLE,STYLE=BOLD,FONT=ARIAL,SIZE=6,GRID=ON,BACKCOLOR=WHEAT,$
TYPE=DATA,FONT=ARIAL,SIZE=7,GRID=ON,$
TYPE=REPORT,COLUMN=COUNTRY, JUSTIFY=CENTER, LEFTGAP=.01,RIGHTGAP=.01,WRAP=0.9, $
TYPE=REPORT,COLUMN=CAR,JUSTIFY=CENTER,SQUEEZE=0.8,LEFTGAP=.01,RIGHTGAP=.01,WRAP=0.9,  $
TYPE=REPORT,COLUMN=MODEL, JUSTIFY=CENTER,SQUEEZE=0.5,LEFTGAP=.01,RIGHTGAP=.01, WRAP=0.9, $
TYPE=REPORT,COLUMN=TYPE, JUSTIFY=CENTER,SQUEEZE=0.5,LEFTGAP=.01,RIGHTGAP=.01,WRAP=0.9,  $
TYPE=REPORT,COLUMN=SEATS, JUSTIFY=CENTER,SQUEEZE=.9,LEFTGAP=.01,RIGHTGAP=.01, $
TYPE=REPORT,COLUMN=SALES, JUSTIFY=CENTER,SQUEEZE=0.5,LEFTGAP=.01,RIGHTGAP=.01, $
TYPE=REPORT,COLUMN=RETAIL_COST, JUSTIFY=CENTER,SQUEEZE=0.6,LEFTGAP=.01,RIGHTGAP=.01, $
TYPE=GRANDTOTAL,STYLE=BOLD,FONT=ARIAL,SIZE=7,GRID=ON,$
TYPE=SUBTOTAL,STYLE=BOLD,FONT=ARIAL,SIZE=7,GRID=ON,$
TYPE=SUBHEAD,STYLE=BOLD,FONT=ARIAL,SIZE=7,GRID=ON,$
ENDSTYLE

ON TABLE PCHOLD PDF  HTML 
END

TABLE FILE CAR
SUM SEATS 
BY CAR
ON TABLE PCHOLD FORMAT PDF  CLOSE
END




Can this be done ?

-Saurabh
Solaris, WebFocus v716

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


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
Expert
posted Hide Post
You have several options,

1. Create your own headings with a SUBHEAD on the appropriate sort field.
2. Use a COMPOUND PDF document, and you can create a loop for each TYPE, and use SET COMPOUND = NOBREAK.

The second options is more trick, as you may not know when the page will end and a TYPE may fall across two pages.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
quote:
Create your own headings with a SUBHEAD on the appropriate sort field.


Can tell me what the code will be like ?


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
Expert
posted Hide Post
Here's an example:

TABLE FILE CAR
HEADING
"SAMPLE REPORT"
PRINT 
COUNTRY 
CAR 
MODEL 
TYPE 
SEATS 
SALES 
RETAIL_COST
BY TYPE AS 'CAR TYPE'
ON TYPE SUB-TOTAL 
ON TYPE SUBHEAD
"CAR TYPE <+0> COUNTRY <+0> CAR <+0> MODEL <+0> BODYTYPE <+0> SEATS <+0> SALES <+0> RETAIL COST"
"<TYPE"
ON  TYPE  NOSPLIT
ON TABLE SET PAGE-NUM OFF
ON TABLE SUBTOTAL SALES AS 'TOTAL SALES'

ON TABLE SET STYLE *
TYPE=REPORT, FONT=ARIAL, SIZE=8, ORIENTATION=LANDSCAPE, $

$ FOR HTML
TYPE=SUBHEAD, HEADALIGN=BODY, $

$ FOR PDF
TYPE=SUBHEAD, ITEM=1, POSITION=N1, COLOR=BLUE, $
TYPE=SUBHEAD, ITEM=2, POSITION=N2, COLOR=RED, $
TYPE=SUBHEAD, ITEM=3, POSITION=N3, $
TYPE=SUBHEAD, ITEM=4, POSITION=N4, $
TYPE=SUBHEAD, ITEM=5, POSITION=N5, $
TYPE=SUBHEAD, ITEM=6, POSITION=N6, $
TYPE=SUBHEAD, ITEM=7, POSITION=N7, $
TYPE=SUBHEAD, ITEM=7, POSITION=N8, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END


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
Member
posted Hide Post
Thank you very much --to both Waz and Francis for your responses.

The suggested code works ( I will add a grid and use it for my app)

This one is resolved.

-Saurabh


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report 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] PDF Report Help - Formating (Repeating the Title)

Copyright © 1996-2020 Information Builders