SET COMPONENT='reportx'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/Fake/somerep.fex
to match.
I admit that I am using include but you don't have too. Here is a sample of that:
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
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='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.875 1.198), DIMENSION=(6.458 1.198), BYTOC=0, ARREPORTSIZE=DIMENSION, METADATA='left: 0.875in; top: 1.198in; width: 6.458in; height: 1.198in; position: absolute; z-index: 1;', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.979 2.865), DIMENSION=(5.990 1.406), BYTOC=0, ARREPORTSIZE=DIMENSION, METADATA='left: 0.979in; top: 2.865in; width: 5.99in; height: 1.406in; position: absolute; z-index: 2;', $
END
SET COMPONENT='report1'
-*component_type report
-* File: IBFS:/DEV3/WFC/Repository/Commercial_Lines_Portal/FUS/Reports/Report1.fex Created by WebFOCUS AppStudio
-*-SET &ECHO=ALL;
-DEFAULTH &POL_EFFECTIVE_YEAR=0
-* Note making this larger adds 2 lines to the top of the report
SET LINES=998
TABLE FILE CAR
BY CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENFlat.sty,
UNITS=PTS,
$
LEFTMARGIN=0.00000,
RIGHTMARGIN=0.00000,
TOPMARGIN=0.00000,
BOTTOMMARGIN=0.00000,
$
TYPE=REPORT,
LEFTGAP=3,
RIGHTGAP=3,
WRAP=OFF,
$
TYPE=DATA,
BACKCOLOR=( 'WHITE' RGB(243 243 243) ),
$
ENDSTYLE
END
SET COMPONENT='report2'
TABLE FILE CAR
BY HIGHEST COUNTRY
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENFlat.sty,
UNITS=PTS,
$
LEFTMARGIN=0.00000,
RIGHTMARGIN=0.00000,
TOPMARGIN=0.00000,
BOTTOMMARGIN=0.00000,
$
TYPE=REPORT,
LEFTGAP=3,
RIGHTGAP=3,
WRAP=OFF,
$
TYPE=DATA,
BACKCOLOR=( 'WHITE' RGB(243 243 243) ),
$
ENDSTYLE
END
-END_PROC
COMPOUND END
Using this technique I would use a loop that generates each
COMPONENT section
and another loop to generate:
the set compound section:
SET COMPONENT='report2'
This is tricky since they have to be perfect to work and you would be generating Webfocus code not hold files.
Hope that this makes sense to you.
Fernando
Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
January 13, 2020, 08:54 AM
pav
Thanks Fernando, I am going to try you suggestion.
January 13, 2020, 01:27 PM
Fernando
Hi Pav, If you have code the uses OPEN CLOSE without a loop can you post it? Maybe there is an easier way.
FernandoThis message has been edited. Last edited by: Fernando,
Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
January 14, 2020, 01:38 PM
pav
Fernando, You are awesome. I got the PDF open close working in a loop. Thanks for your support.