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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Working with multiple excel worksheets

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Working with multiple excel worksheets
 Login/Join
 
Platinum Member
posted
Hi,

I use the following application. My expectation is that I get three worksheets but only the first is shown.
I think this worked, any idea what I'm doing wrong


-* Create Excel Worksheet 1 

TABLE FILE CAR 
PRINT COUNTRY
HEADING
"Report A" 
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
    TITLETEXT='Worksheet 1',
$
     INCLUDE = endeflt,
$
ENDSTYLE
END

-* Create Excel Worksheet 2

DEFINE FILE CAR
MLD/A20 = 'Just a message';
END 

TABLE FILE CAR 
PRINT MLD AS ''
BY COUNTRY NOPRINT
HEADING
"Report B" 
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K 
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
    TITLETEXT='Worksheet 2"',
$
     INCLUDE = endeflt,
$
ENDSTYLE
END 
 
-* Create Excel Worksheet 3

TABLE FILE CAR 
PRINT CAR
HEADING
"Report C" 
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
    TITLETEXT='Worksheet 3',
$
     INCLUDE = endeflt,
$
ENDSTYLE
END




This message has been edited. Last edited by: <Emily McAllister>,
 
Posts: 103 | Registered: March 18, 2008Report This Post
Expert
posted Hide Post
Need to open the manual and look at how to use stylesheets.
Get all 3 with this:
  
-* Create Excel Worksheet 1 

TABLE FILE CAR 
PRINT COUNTRY
HEADING
"Report A" 
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Worksheet 1',$
ENDSTYLE
END

-* Create Excel Worksheet 2

DEFINE FILE CAR
MLD/A20 = 'Just a message';
END 

TABLE FILE CAR 
PRINT MLD AS ''
BY COUNTRY NOPRINT
HEADING
"Report B" 
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K 
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Worksheet 2',$
ENDSTYLE
END 
 
-* Create Excel Worksheet 3

TABLE FILE CAR 
PRINT CAR
HEADING
"Report C" 
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Worksheet 3',$
ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Tom,

Thanks for your reply but did not worked for me. I'll fix it with separate drilldowns.

Thanks,
Mark
 
Posts: 103 | Registered: March 18, 2008Report This Post
Guru
posted Hide Post
Tom´s code works like a charm!


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
open the manual and look at how to use

How applicable is that to many of the questions that have been asked in recent times? Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Hi,

I'm sure the code works but as I said not for me, this because we have many problems with version 8105. This is one of the problem, when I run the application I only get the first report so 'Report A'.
Other problems ar hold global parameters strange behavior using FML reports in combination with Hyperstage etc.
 
Posts: 103 | Registered: March 18, 2008Report This Post
Guru
posted Hide Post
MrM, it makes no sense.

Do you still need some help to handle multiples worksheets?

Post your errors/problems and what are you trying to reach.

This message has been edited. Last edited by: Ricardo Augusto,


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
To All

Thanks for your help, I've reprogrammed it by using drilldowns.
But can anyone confirm that the fex supplied by Tom works in version 8.1.0.5. if so then I think the installation of 8.1.0.5 is not correct.
 
Posts: 103 | Registered: March 18, 2008Report This Post
Expert
posted Hide Post
My signature is up-to-date.


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
MrM,

Have you upgraded to 8.1.05m?


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 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]Working with multiple excel worksheets

Copyright © 1996-2020 Information Builders