Focal Point
[SOLVED] Unable to place a report into different excel sheets based on across field

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

June 20, 2013, 07:34 AM
info4pals
[SOLVED] Unable to place a report into different excel sheets based on across field
Hi,
Lets say I have this Table file CAR file and the code as shown below:

-DEFAULT &COUNTRY_SLCT='ITALY';
TABLE FILE CAR
SUM
DEALER_COST
BY MODEL
BY BODYTYPE
ACROSS COUNTRY
ACROSS CAR
WHERE SEATS NE ' '
WHERE COUNTRY EQ '&COUNTRY_SLCT';
END
-RUN
-EXIT

If the user selects 2 countries such as Italy,England from the user interface/launchpage of the report,then I want the report to be placed in 2 different excel tabs(One sheet having the report for Italy,another sheet for England) in the same excel workbook.I know that BYTOC works only for BY fields.

Could anyone tell me how to do this.Any help is greatly appreciated.
Thanks a lot!

This message has been edited. Last edited by: <Kathryn Henning>,


webfocus 769,windows 7,html
June 20, 2013, 08:16 AM
jimbo
TABLE FILE CAR
SUM 
DEALER_COST
BY COUNTRY NOPRINT
BY MODEL
BY BODYTYPE
ACROSS COUNTRY
ACROSS CAR
WHERE SEATS NE ' '
WHERE COUNTRY EQ '&COUNTRY_SLCT';
ON TABLE PCHOLD FORMAT EXL2K BYTOC
END  



7.7.04
Win2K3, Unix
Oracle 10G,SQL2K,XFOCUS,ESRI,BID,MRE,SELF-SERVICCE
June 20, 2013, 05:40 PM
Waz
Sounds like you need to take a look at the documentation on Excel support.


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!

June 21, 2013, 04:35 AM
info4pals
HiJimbo,

I have tried this method which you have posted but when we pass more than1 value from the launchpage of the report - say England and Italy,in 1st tab, we will have the dealer cost values for both England and Italy (Dealer cost will contain some values for England and blank dealer cost values for Italy in 1st tab) and viceversa in the 2nd tab.

Hope iam clear.Let me know how can we get only the Dealer cost values for only England in 1st tab and Dealer cost values for only Italy in 2nd tab...

Thanks a lot!


webfocus 769,windows 7,html
July 15, 2013, 01:58 AM
info4pals
[SOLVED]


webfocus 769,windows 7,html
July 15, 2013, 02:31 AM
Waz
info4pals, to add [SOLVED] to the title of this thread, edit the first post you did, and add it there.


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!