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]Conditional Page Break in COMPOUND subreport

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Conditional Page Break in COMPOUND subreport
 Login/Join
 
Member
posted
I try to develop a COMPOUND report with 2 subreports printing alternatively as below:

[newpage]
Report-1
Report-2
[newpage]
Report-1
Report-2
[newpage]
Report-1
Report-2

Report-1 is a summary with a few lines in the body and Report-2 is a detail list with many lines some group goes on for pages.

The issue is how can I do a conditional page break for Report-2 in case the list run over a page?

Report-1
Report-2 (first part fit in the remaining space of the report-1 page)
[force a conditional page break]
print title line for Report-2
print the following portion fit in a page
new page until the end of the detail list in the current group.
[newpage]
Report-1 for next group
Report-2 for next group

I'd tried the code below, seems there is no effort on the subreport within a COMPOUND report.

TABLE FILE CAR
SUM
QTY/D20 AS ''
PGBREAK/D1 AS ''
BY LIC_NO NOPRINT
WHERE GRP EQ '&A_GRP'

ON PGBREAK PAGE-BREAK

ON TABLE PCHOLD FORMAT &OUTPUT NOBREAK

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


WebFOCUS 764, Oracle to produce report
 
Posts: 23 | Location: CA | Registered: April 07, 2011Report This Post
Expert
posted Hide Post
What sort of COMPOUND report is it ?

Your sample indicates the old compound type.

For your sample, you need to have PGBREAK as a sort field.


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
I'm new to compound report. Where could I found the documentation for the new compound type?


WebFOCUS 764, Oracle to produce report
 
Posts: 23 | Location: CA | Registered: April 07, 2011Report This Post
Expert
posted Hide Post
I just noticed you are on WebFOCUS 5 ?

You will only have the old one.

SET COMPOUND OPEN/NOBREAK/CLOSE


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
Expert
posted Hide Post
1. You need to educate yourself with the manual or IBI classes.
2. You can only PAGE-BREAK on a SORT column
3. WebFOCUS 5? Geez, you are using an outdated product.
4. QUANTITY from CAR file - not a valid column
5. PGBREAK from CAR file - not a valid column
6. LIC_NO from CAR file - not a valid column
7. GRP from CAR file - not a valid column

Compound Example:

  
APP PREPENDPATH IBISAMP
-RUN

TABLE FILE CAR
HEADING CENTER
"Report 1"
" "
SUM
    DEALER_COST
    RETAIL_COST
  BY COUNTRY PAGE-BREAK
  BY CAR
  BY MODEL
ON TABLE PCHOLD FORMAT &OUTPUT OPEN NOBREAK 
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-RUN
TABLE FILE GGSALES
HEADING CENTER
"Report 2"
" "
SUM
   UNITS          
   DOLLARS        
  BY CATEGORY 
  BY REGION                 
  BY PRODUCT  
  BY DATE            
ON TABLE PCHOLD FORMAT &OUTPUT
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-RUN
TABLE FILE CAR
HEADING CENTER
"Report 3"
" "
SUM
    DEALER_COST
    RETAIL_COST
  BY COUNTRY PAGE-BREAK
  BY CAR
  BY MODEL
ON TABLE PCHOLD FORMAT &OUTPUT NOBREAK
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE 
END
-RUN
TABLE FILE GGSALES
HEADING CENTER
"Report 4"
" "
SUM
   BUDUNITS      
   BUDDOLLARS     
  BY CATEGORY
  BY REGION                 
  BY PRODUCT   
  BY DATE           
ON TABLE PCHOLD FORMAT &OUTPUT
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-RUN
TABLE FILE CAR
HEADING CENTER
"Report 5"
" "
SUM
    DEALER_COST
    RETAIL_COST
  BY COUNTRY PAGE-BREAK
  BY CAR
  BY MODEL
ON TABLE PCHOLD FORMAT &OUTPUT NOBREAK 
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-RUN
TABLE FILE GGSALES
HEADING CENTER
"Report 6"
" "
SUM
   DOLLARS        
   BUDDOLLARS     
  BY CATEGORY
  BY REGION                 
  BY PRODUCT  
  BY DATE      
ON TABLE PCHOLD FORMAT &OUTPUT CLOSE
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, FONT=ARIAL, SIZE=8,$
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
Sorry for the code sample, my compound report runs okay, an produce what I expected except on report-2 when there is a lot of detail lines, I want to force a page break and print a report and column headings before continue on. The sample code just to illustrate waht I did in report-2 trying to force a page break under certain condition, But it simply does work at all.

Tom, you're right, I forgot to include the PAGE-BREAK column as a SORT column, and it breaks accordingly after declaring as a SORT column.

I finally able to control my page break and format my compound report nicely after searching the forum and share the idea from Susannah, Thankyou!

http://forums.informationbuild...571093952#6571093952

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


WebFOCUS 764, Oracle to produce report
 
Posts: 23 | Location: CA | Registered: April 07, 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]Conditional Page Break in COMPOUND subreport

Copyright © 1996-2020 Information Builders