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]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