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     [CLOSED] Can we have a Table of Contents in XLSX?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Can we have a Table of Contents in XLSX?
 Login/Join
 
Virtuoso
posted
I have an XLSX report that uses BYTOC on the first sort field, creating a worksheet with a sheet (or tab if you like) per unique sort value. The unfortunate side-effect is that the tabs appear in alphabetical order, while the customer would prefer the sort-of flattened hierarchical order in the original (manually created) document.

They don't consider that a major issue though; the original document started with a sheet with a Table of Contents that selected the desired worksheet - and since there are dozens - that has been the preferred method of operation anyway.

Now I have done such in compound PDF documents, by creating a Document with output format PDF and then inserting a TOC page. I can't seem to get this to work for XLSX though - is that implemented at all?

This is what I got so far:
-* Default Mode: ResourceLayout
-SET &WFFMT = XLSX;
APP PREPENDPATH IBISAMP
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT &WFFMT
UNITS=IN, $
OBJECT=TOC, NAME='TOC_Text', TEXT='Table of Contents', MARKUP=OFF, TOC-NUMBERING=ON, POSITION=(0.854 0.854), DIMENSION=(7.000 9.500), font='TREBUCHET MS', color=RGB(0 0 0),  size=10, METADATA='left: 0.854in; top: 0.854in; width: 7in; height: 9.5in; font-family: Trebuchet MS; font-size: 10pt; position: absolute; z-index: 1; Justify: center; TOCTITLE: Table of Contents', $
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=A4, 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=1, POSITION=(0.854 0.854), DIMENSION=(7.000 9.500), BYTOC=2,  ARREPORTSIZE=DIMENSION, METADATA='left: 0.854in; top: 0.854in; width: 7in; height: 9.5in; position: absolute; z-index: 1;', $
END
SET COMPONENT='report1'
-*component_type report
TABLE FILE CAR
PRINT
     CAR.BODY.SEATS
     CAR.BODY.DEALER_COST
     CAR.BODY.RETAIL_COST
BY  CAR.ORIGIN.COUNTRY NOPRINT
BY  CAR.COMP.CAR
BY  CAR.CARREC.MODEL
ON  CAR.ORIGIN.COUNTRY SUBHEAD
"<CAR.ORIGIN.COUNTRY"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE SET BYDISPLAY ON
ON TABLE SET BYPANEL ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET COMPOUND 'BYTOC 1'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
Wep5622

With XLSX the Table Of Contents will only create separate tabs in the spreadsheet for each value of the first BY. You can not make it display the same as you see in PDF.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
Thanks for confirming what I feared already, Chuck. We'll have to get a bit creative then...


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can we have a Table of Contents in XLSX?

Copyright © 1996-2020 Information Builders