Focal Point
[CASE OPENED] Compound Report - Strange Output

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6117045196

August 26, 2019, 03:10 PM
CD
[CASE OPENED] Compound Report - Strange Output
I have a compound report with 2 reports rpt1 and rpt2. We expect the compound report output will be rpt1, then rpt2. For unknown reason, the output in reverse order. We would like know why and how to control it.

Below is the code:

-* 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=ON, ORIENTATION=LANDSCAPE, 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.500 1.458), DIMENSION=(10.208 1.250), ARREPORTSIZE=DIMENSION, METADATA='left: 0.5in; top: 1.458in; width: 10.208in; height: 1.25in; position: absolute; z-index: 1;', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.500 3.438), DIMENSION=(10.208 2.083), ARREPORTSIZE=DIMENSION, METADATA='left: 0.5in; top: 3.438in; width: 10.208in; height: 2.083in; position: absolute; z-index: 2;', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/IJIS_Portal/JMSPRINT/INMATESERVICESCFC/HeaderNOImage.fex
SET COMPONENT='report2'
-*component_type report
-INCLUDE IBFS:/WFC/Repository/IJIS_Portal/JMSPRINT/INMATESERVICESCFC/ProgramCFCpdf.fex

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.0.0.8
Windows, All Outputs
August 27, 2019, 10:43 AM
FP Mod Chuck
CD

This looks correct to me, I suggest you open a case and show this to techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 27, 2019, 11:41 AM
pav
Hello CD,

Try with MERGE=OFF instead of MERGE=ON.
Give a try.

Thank you.
August 27, 2019, 01:55 PM
CD
FP Mod Chuck, Thank you very much for your help. I will opened a case with IBI tech support.


WebFocus 8.0.0.8
Windows, All Outputs
August 30, 2019, 10:45 AM
pav
Even I have the same, Second fex coming on top and the first fex coming in the second page.
What happen in my example was that when the MERGE set to MERGE=ON then it enables the sorting of the data. (That's why the pages are sorted according to the data.)
When I used MERGE=OFF, it is working what CD wanted to.



-* 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=ON, 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.500 0.624), DIMENSION=(7.438 9.819), BYTOC=0,  ARREPORTSIZE=DIMENSION, METADATA='left: 0.5in; top: 0.624in; width: 7.438in; height: 9.819in; position: absolute; z-index: 1;', $
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,', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.500 0.822), DIMENSION=(7.396 9.581), BYTOC=0,  ARREPORTSIZE=DIMENSION, METADATA='left: 0.5in; top: 0.822in; width: 7.396in; height: 9.581in; position: absolute; z-index: 1;', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE test_1.fex
SET COMPONENT='report2'
-*component_type report
-INCLUDE test2.fex
COMPOUND END
  



 

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* FEX 1
TABLE FILE CAR
PRINT
CAR
BY CAR
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
END
-RUN

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* FEX 2
DEFINE FILE CAR
CAR_1/A16='';
END
TABLE FILE CAR
PRINT
CAR
BY CAR_1

WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
END
-RUN



 

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