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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.
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.