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     [RESOLVED] COMPOUND PDF with a variable number of reports

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[RESOLVED] COMPOUND PDF with a variable number of reports
 Login/Join
 
Platinum Member
posted
Hi,
I am trying to create a compound PDF report that has a variable number of reports.
The inclusion/exclusion of a given report can be determined before the compound report is 'opened'. (SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF") But I don't want to create a compound report for every possible combination. (9 reports and you can guess how many iterations that would be.)
Dialogue manager doesn't appear to work within the
"COMPOUND LAYOUT PCHOLD FORMAT PDF"
and the corresponding "END" statement.
If that's incorrect, please correct me! If you have another solution, I would LOVE to hear it.
Thanks!
Marilyn

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


WebFOCUS 8.1.05 Windows 7, all output
 
Posts: 107 | Registered: February 18, 2011Report This Post
Virtuoso
posted Hide Post
Dialog manager works fine throughout compound reports. What problem are you experiencing with DM?


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Make sure that you always have an open and close as active (executable) lines in your final executable code.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
I am posting the method I am using. Perhaps I should use another method?
  
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^1', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Letter,  $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='graph1', TEXT='graph1',   TOC-LEVEL=2, POSITION=(0.521 1.875), DIMENSION=(5.0 3.0), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 5.00in; HEIGHT: 3.00in; OVERFLOW: auto; TOP: 0.625in; LEFT: 0.521in', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(5.521 1.785), DIMENSION=(4.75 4.5), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 5.25in; HEIGHT: 3.50in; OVERFLOW: auto; TOP: 1.525in; LEFT: 4.272in', $
OBJECT=STRING, TEXT='Page <ibi-page-number/>',  MARKUP=ON, FONT=ARIAL, SIZE=8, TOC-LEVEL=2, POSITION=(10 8.0), DIMENSION=(.75 .25) ,$

PAGELAYOUT=2, NAME='Page layout 2', text='Page layout 2', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
OBJECT=STRING, TEXT='Multiple Measurement System Summary', MARKUP=ON, FONT=ARIAL, SIZE=18 STYLE=BOLD TOC-LEVEL=2, POSITION=(3.5 .75), COLOR='BLACK', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2,
POSITION=(0.521 1.25), DIMENSION=(10.50 7.00), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.00in; HEIGHT: 4.00in; OVERFLOW: auto; TOP: 6.725in; LEFT: 0.521in', $
OBJECT=STRING, TEXT='Page <ibi-page-number/>',  MARKUP=ON, FONT=ARIAL, SIZE=8, TOC-LEVEL=2, POSITION=(10 8.0), DIMENSION=(.75 .25) ,$

-FMTPROF
-IF '&GET_PROF.EVAL' EQ '' GOTO FMTGROW;
-*-* Proficiency
PAGELAYOUT=3, NAME='Page layout 3', text='Page layout 3', ORIENTATION=LANDSCAPE, TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.25,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report3', TEXT='report3', TOC-LEVEL=2, POSITION=(0.624 0.624), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 6.171in; HEIGHT: 4.274in; OVERFLOW: auto; TOP: 0.624in; LEFT: 0.624in', $

-FMTGROW
-IF '&GET_GROW.EVAL' EQ '' GOTO FMTAGAP;
-*-* Growth
PAGELAYOUT=4, NAME='Page layout 4', text='Page layout 4', ORIENTATION=LANDSCAPE, TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report4', TEXT='report4', TOC-LEVEL=2, POSITION=(0.624 0.624), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 6.042in; HEIGHT: 6.974in; OVERFLOW: auto; TOP: 0.624in; LEFT: 0.624in', $
OBJECT=STRING, TEXT='Page <ibi-page-number/>',  MARKUP=ON, FONT=ARIAL, SIZE=8, TOC-LEVEL=2, POSITION=(10 8.0), DIMENSION=(.75 .25) ,$
-*
-FMTAGAP
-IF '&GET_AGAP.EVAL' EQ '' GOTO FMTAGAP;
-*-* Achievement Gap Reduction
PAGELAYOUT=5, NAME='Page layout 5', text='Page layout 5', ORIENTATION=LANDSCAPE, TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report5', TEXT='report5', TOC-LEVEL=2, POSITION=(0.624 0.624), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 6.042in; HEIGHT: 6.974in; OVERFLOW: auto; TOP: 0.624in; LEFT: 0.624in', $
OBJECT=STRING, TEXT='Page <ibi-page-number/>',  MARKUP=ON, FONT=ARIAL, SIZE=8, TOC-LEVEL=2, POSITION=(10 8.0), DIMENSION=(.75 .25) ,$
-*
-FMTGRAD
-IF '&GET_GRAD.EVAL' EQ '' GOTO GETINCL;
-*-*Graduation
PAGELAYOUT=6, NAME='Page layout 6', text='Page layout 6', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='report6', TEXT='report6', TOC-LEVEL=2, POSITION=(0.624 0.624), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 6.042in; HEIGHT: 6.974in; OVERFLOW: auto; TOP: 0.624in; LEFT: 0.624in', $
OBJECT=STRING, TEXT='Page <ibi-page-number/>',  MARKUP=ON, FONT=ARIAL, SIZE=8, TOC-LEVEL=2, POSITION=(10 8.0), DIMENSION=(.75 .25) ,$

-GETINCL

END
-*
SET COMPONENT='graph1'
-*component_type graph
-INCLUDE mdea_mmr_domain_summary_chart.fex
-RUN
SET COMPONENT='report1'
-*-*component_type report
-INCLUDE mdea_mmr_domain_summary_dynamic_notes.fex
-RUN
-*component_type report
SET COMPONENT='report2'
-*component_type graph
-INCLUDE mdea_mmr_domain_summary.fex
-RUN
-IF '&GET_PROF' EQ '' GOTO GETGROW;
SET COMPONENT='report3'
-*component_type report
-INCLUDE mdea_mmr_domain_detail_proficiency.fex
-RUN
-GETGROW
-IF '&GET_GROW' EQ '' GOTO GETAGAP;
SET COMPONENT='report4'
-*component_type report
-INCLUDE mdea_mmr_domain_detail_growth.fex
-RUN
-GETAGAP
-IF '&GET_AGAP' EQ '' GOTO GETGRAP;
SET COMPONENT='report5'
-*component_type report
-INCLUDE mdea_mmr_domain_detail_gapreduction1.fex
-RUN

-GETGRAD
-IF '&GET_GRAD' EQ '' GOTO GETDONE;
SET COMPONENT='report6'
-*component_type report
-INCLUDE mdea_mmr_domain_detail_graduation.fex
-RUN

-GETDONE
COMPOUND END


When I try this, I get small blank pages for all the PDF reports, if one is missing (I intended the GOTO to handle this.
[I took out some string objects and images to protect the innocent. Hopefully I haven't taken out anything relevant.]

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


WebFOCUS 8.1.05 Windows 7, all output
 
Posts: 107 | Registered: February 18, 2011Report This Post
Virtuoso
posted Hide Post
quote:

-FMTAGAP
-IF '&GET_AGAP.EVAL' EQ '' GOTO FMTAGAP;

This could create an infinite loop

quote:

-GETAGAP
-IF '&GET_AGAP' EQ '' GOTO GETGRAP;
SET COMPONENT='report5'
-*component_type report
-INCLUDE mdea_mmr_domain_detail_gapreduction1.fex
-RUN

-GETGRAD

Doesn't your above -IF statement produce an error?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
No. It doesn't produce an error. But when I fixed my typo and loop that Danny pointed out, all is well. Thanks for the help!

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


WebFOCUS 8.1.05 Windows 7, all output
 
Posts: 107 | Registered: February 18, 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     [RESOLVED] COMPOUND PDF with a variable number of reports

Copyright © 1996-2020 Information Builders