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] Tabs in Excel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Tabs in Excel
 Login/Join
 
Gold member
posted
Hi All,

I want to know how to code in the procedure to make the reports generated as tabs in Excel.

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


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Depending on whether you want to created tabs for different reports or for breaks in data, search for BYTOC or COMPOUND.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
See syntax for compound, this has worked for me in the past:
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT EXL2K OPEN 
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report1', $
ENDSTYLE
END
-RUN
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 2
ON TABLE PCHOLD FORMAT EXL2K OPEN 
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report2', $
ENDSTYLE
END
-RUN
TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 3
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Report3', $
ENDSTYLE
END  


hope this helps.


WebFOCUS 7.6.4
Windows
Excel, PDF, HTML
 
Posts: 2 | Registered: March 23, 2009Report This Post
Expert
posted Hide Post
This is much simpler:
SET COMPOUND=BYTOC
TABLE FILE CAR
SUM SALES 
BY COUNTRY
BY CAR
ON TABLE PCHOLD FORMAT EXL2K
END


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
quote:

SET COMPOUND=BYTOC
TABLE FILE CAR
SUM SALES 
BY COUNTRY
BY CAR
ON TABLE PCHOLD FORMAT EXL2K
END


It is simple but it will generate 100 tabs if the By field has 100 values in it.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Yes.

How many tabs are you expecting?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Also, my requirement is not from a single table, I want the tabs based on the field names of different tables, but used in the same report.
ex:
---
table A
---------
Field 1 | Field 2 | Field 3


Table B
---------
Field 4 | Field 5 | Field 6


Table C
---------
Field A | Field B


I want four excel tabs named,
1. Field 2
2. Field 4
3. Field 6
4. Field B


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Then use a concatenated key to do the sort.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
quote:
Originally posted by GinnyJakes:
Then use a concatenated key to do the sort.


how to do that, can u explain with an example


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Your are not giving me much to go on. Are you joining the tables? Now that I look at your previous post, what you probably need to do, and this is a stab in the dark because I can't see your code, is to create a TABLE request for each view and use a define to create a generic sort field based on the value from that table. So for instance, table A would look something like this:
DEFINE FILE TABLEA
SORTFLD1/Ann=FIELD2;
END
TABLE FILE TABLEA
PRINT ...
BY SORTFLD1
...
ON TABLE HOLD AS HOLDA FORMAT ALPHA
END

Do something like this for each view. Then create your final output:
SET COMPOUND=BYTOC
TABLE FILE HOLDA
PRINT ...
BY SORTFLD1
ON TABLE PCHOLD FORMAT EXL2K
MORE
FILE HOLDB
MORE
FILE HOLDC
END


Please experiment with this shell to get it to do what you want. FYI, the MORE syntax concatentates the 3 hold files together assuming like fieldnames and formats. Look up either the MORE command or Universal Concatenation.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report 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] Tabs in Excel

Copyright © 1996-2020 Information Builders