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.
I have four PDF reports that I'd like to combine with COMPOUND. They all have the same HEADING. I would like to use NOBREAK, but I do not want the HEADING of the next report to show up half way on the page - there is already a HEADING at the top of the page from the previous report. The four reports have a different number of columns each, so I'd rather not combine the data before creating a single PDF report.
As well, I would like to make the COMPOUND report flexible so that it does not matter how many reports are in the COMPOUND report. I thought I could OPEN the COMPOUND report at the top, run x number of reports and then CLOSE NOBREAK the COMPOUND report at the end with a dummy one-line report using this code:
SET COMPOUND = CLOSE NOBREAK
-RUN
TABLE FILE FUND
PRINT FUND_NAME NOPRINT
WHERE READLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
END
-RUN
This works well, except I get a blank page at the end, which means the NOBREAK on the last report doesn't work.
Do all the reports have to be NOBREAK?
Is this all improved drastically in 7.6?This message has been edited. Last edited by: Kerry,
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
I have one that I tricked...with a dummy at the end like yours...I did not put NOBREAK...on the last 2 reports and it worked. This is a 15 Report Compound Report.
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
Used the Painter once to decipher the code, haven't used it since. I use an amper to determine whether the data needs multi-pages, to include the header page again, so, here's an example of a 3-tier PDF process, hand-coded.
OK, so now that you both (Tom/Tony) have gone down the road to decypher the code for coordinated reports (which IBI has not documented), which one of you is going to write an article explaining to the rest of us old school coders how to make one from scratch?
Sounds like another 'POW' presentation for Summit that might get some interest.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
I tried to figure out how to use the code the tool produced for 'Page # of Pages' in the compound report for one I had hand coded and didn't have any luck...I was hoping for some documentation.
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
Thanks Tom, (now to be known as "slopey" as in shoulders!) but I won't volunteer for this until I've had more time to play. Summit this year for me will be purely for learning and networking - oh, and socialising (not the same as networking )
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Definitely don't want to known as "Slopey" , so, maybe we can co-ordinate a DOC. Haven't attended a SUMMIT, only FUSE's, and that was last century!!!
Praire, apples and oranges: Adobe just takes over; you can do section page settings in Adobe, or, hard-code the page-number in each program, since, in my example, I KNOW the number of pages. Now, with 15 reports, creating a BOOK, different story. Could be detail, could be summary; again, Adobe takes over.
Your trick is the same as my trick. I've tried this with and without NOBREAK.
It might simply be how I coded the dummy report at the end.
Here's my code:
-SET &ECHO = 'ALL';
SET MSG = ON
-RUN
SET HOLDLIST = PRINTONLY
SET ASNAMES = ON
SET HOLDFORMAT = ALPHA
SET ALL = ON
SET PRINTPLUS = ON
SET PAGE = NOPAGE
SET CENT-ZERO = ON
-RUN
SET COMPOUND = OPEN
-RUN
-*-- Report 1 ----------------------------------------------
TABLE FILE GGSALES
SUM
UNITS/D15
DOLLARS/D15
BUDUNITS/D15
BUDDOLLARS/D15
BY REGION NOPRINT
BY CATEGORY
BY PRODUCT
ON REGION SUBHEAD
"<REGION"
" "
ON REGION SUBTOTAL AS 'Total for'
ON TABLE SUBTOTAL AS 'Total'
HEADING
"Product Sales and Budget Details"
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=1.0, $
TYPE=REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $
TYPE=HEADING , STYLE=BOLD, $
TYPE=HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$
TYPE=HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $
TYPE=TITLE , STYLE=BOLD, $
TYPE=SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE=SUBTOTAL , STYLE=BOLD, $
TYPE=GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE
END
-RUN
-*-- Report 2 ----------------------------------------------
TABLE FILE GGSALES
SUM
UNITS/D15
DOLLARS/D15
BUDUNITS/D15
BUDDOLLARS/D15
BY REGION NOPRINT
BY CATEGORY
BY PRODUCT
ON REGION SUBHEAD
"<REGION"
" "
ON REGION SUBTOTAL AS 'Total for'
ON TABLE SUBTOTAL AS 'Total'
WHERE CATEGORY EQ 'GOODFORYOU'
HEADING
"Product Sales and Budget Details"
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=1.0, $
TYPE=REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $
TYPE=HEADING , STYLE=BOLD, $
TYPE=HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$
TYPE=HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $
TYPE=TITLE , STYLE=BOLD, $
TYPE=SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE=SUBTOTAL , STYLE=BOLD, $
TYPE=GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE
END
-RUN
SET COMPOUND = CLOSE
-RUN
-*-- Dummy closing report ----------------------------------
TABLE FILE GGSALES
PRINT
PRODUCT NOPRINT
WHERE RECORDLIMIT EQ 1
WHERE READLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=1.0, $
ENDSTYLE
END
-RUN
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
1) Commented out -*SET COMPOUND = OPEN 2) For the 1st report - ON TABLE PCHOLD FORMAT PDF OPEN 3) For the 2nd report - WHERE CATEGORY NE 'GOODFORYOU' 4) For the 2nd report - ON TABLE PCHOLD FORMAT PDF CLOSE 5) Skipped the DUMMY report
OUTPUT: 4 pages Heading on each page (don't have the jpg)
Comments:
If you want to make this dynamic, set a counter for first, last, create &OPN_CLS, and pass them.
ON TABLE PCHOLD FORMAT PDF &OPN_CLS
I do this all the time with compound PDF's AND EXCEL stuff.
The only reason I use COMPOUND, i.e., the example I gave, is if the client wants side-by-side reports/graphs or, 2 reports are small, 2 are large on 3 pages, basically, data driven.
Hope this helps...
EDIT1: Report 2 had zero records with EQ EDIT2: Sorry: Whenever I include an image in the heading, I use: HEADING " " " " " " "Product Sales and Budget Details" " "
I purposely wanted to have the second report not have any data. The idea is that I want a program that is flexible - I don't know how many of the several reports will have data, therefore I can't use PCHOLD FORMAT PDF OPEN either, because I don't know which one will be the first report.
I have assumed that SET COMPOUND=OPEN and PCHOLD FORMAT PDF OPEN do exactly the same thing, but previous postings seem to suggest otherwise.
Thanks,
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
When the middle report produces no data, I have the first report with two pages and the last dummy report with one blank page. I was hoping to tack the last dummy report to the bottom of the page without generating a blank page.
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
You are so creative, you'll figure something out, like:
1) writing the fex's selected to a file and reading them in to execute 2) Within your HTML, setting a value for the first and last 3) giving each report a number and getting FST. and LST. 4) creating HOLD files and branching on &LINES (pain, I know, BUT...)
I am positive something will come to you...This message has been edited. Last edited by: Tom Flynn,
Francis, What did you end up doing to get around this? I am in the same situation, blank page at the end of the report due to a dummy table. The user can select how many reports to run in the compound report. It would work perfectly if I could just get rid of the darn blank page at the end on one of the user selected options.
As Tony mentioned in November 2007, this is better accomplished with the v7.6 Compound Layout tool. The client that I originally tried to solve the problem for has not yet upgraded so they're living with the blank page for now.
Look into "Creating Reports With the Document Composer" and "Creating a Compound Layout Report" in the v7.6 documentation.
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
I had one similar to this recently when the new compound tool wasn't so useful as the old syntax. The user needed a multi page report where some sections just wouldn't exist on occasion. As they used the document in meetings for discussion on project direction etc. I sold them the idea of having a blank notes page with all the project details in a dummy heading and footing and the oft used "this page is intentionally left blank". They went for it and have found it very useful.
The advantage of course was the "blank" notes page at the end is always present and therefore I could code correctly.
Might this be an option for you?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004