Focal Point
Compound reports; can we style the TOC?

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

October 16, 2013, 05:06 AM
Wep5622
Compound reports; can we style the TOC?
I have a compound report where we would like to add a Table of Contents page to, but only if we can style it according to the page master layout. That is to say, the page-heading is required to contain some company logos.

I can't seem to do that though. Is that possible? If so, what's the trick?

The compound layout we're using is according to this scheme (as created by the procedure Composer):
-* File compound_toc_styling.fex
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
OBJECT=TOC,
 NAME='text1',
 TEXT='<font face="ARIAL" size=10>Table of Contents<BR></font>',
 MARKUP=ON,
 TOC-NUMBERING=OFF,
 POSITION=(0.854 0.854), DIMENSION=(6.771 10.198),
 font='ARIAL', color=RGB(0 0 0),  size=10,
 TOC-FILL=DOTS,
 METADATA=' TOCTITLE: Table of Contents',
$
SECTION=section1,
 LAYOUT=ON,
 METADATA='0.5^0.5^0.5^0.5^4',
 MERGE=OFF,
 ORIENTATION=PORTRAIT,
 PAGESIZE=A4,
 SHOW_GLOBALFILTER=OFF,
$

PAGELAYOUT=ALL, NAME='Page Master', $
OBJECT=IMAGE, NAME='image1', IMAGE=vr_logo_tr.jpg, POSITION=(6.775 0.280), DIMENSION=(1.271 0.406), METADATA='Z-INDEX: 100;
POSITION: absolute; WIDTH: 1.271in; HEIGHT: 0.406in; TOP: 0.28in; LEFT: 6.775in', $
COMPONENT='DfltCmpt2', POSITION=(0 0), DIMENSION=(0 0), $

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=1,
 POSITION=(0.208 0.249), DIMENSION=(7.875 11.205),
 BYTOC=2,
 METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.875in; HEIGHT: 11.205in; TOP: 0.249in; LEFT: 0.208in',
$

END
SET COMPONENT='DfltCmpt2'
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
IF READLIMIT EQ 1
ON TABLE SET PREVIEW ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
END
SET COMPONENT='report1'
-*component_type report
TABLE FILE CALDAT8
BY  LOWEST CALDAT8.CALDAT8.CFCCEN NOPRINT
BY  LOWEST CALDAT8.CALDAT8.CFCYEA NOPRINT
BY  CALDAT8.CALDAT8.CFCMNT
BY  CALDAT8.CALDAT8.CFCWEE

ON CALDAT8.CALDAT8.CFCYEA PAGE-BREAK
ON TABLE SUBHEAD
"Year: <CFCCEN<CFCYEA"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=REPORT,
     GRAPHCOLOR='GREEN',
$
TYPE=REPORT,
     OBJECT=MENU,
     COLOR='WHITE',
     HOVER-COLOR=RGB(66 70 73),
     BACKCOLOR=RGB(102 102 102),
     HOVER-BACKCOLOR=RGB(218 225 232),
     BORDER-COLOR='WHITE',
$
TYPE=REPORT,
     OBJECT=STATUS-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
TYPE=REPORT,
     OBJECT=CURRENT-ROW,
     HOVER-BACKCOLOR=RGB(218 225 232),
     BACKCOLOR=RGB(200 200 200),
$
TYPE=REPORT,
     OBJECT=CALC-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
ENDSTYLE
END
COMPOUND END

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


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 :
October 23, 2013, 07:47 PM
<Kathryn Henning>
Hi Wep5622,

I'd like to recommend opening a case on InfoResponse Online so that we can look into this further.

Regards,

Kathryn
October 24, 2013, 09:46 AM
Wep5622
You'd like to... But...?

That's just what I always think before contacting them!


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 :
October 24, 2013, 07:34 PM
<Kathryn Henning>
Hi Wep5622,

This will require some research. Please open a case on InfoResponse Online so that we can look into this further.

Regards,

Kathryn