can anybody help me on bytoc funcationality in WF. Actually mine is a compound report and i have 3 sections in my second xl-tab.but it is populating only one data set remaining dataset is not printing on my second tab.
pls guide me to resolve this issue sample code: TABLE FILE ABC2 PRINT COL1 COL2 ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK END TABLE FILE ABC2 PRINT COL1 COL2 ON TABLE PCHOLD FORMAT EXL2K END
-* SECOND TAB TABLE FILE ABC2 PRINT COL1 COL2 BY TOTAL COMPUTE TITLESHEET/A90 = 'Weekly Detail '; NOPRINT ON TABLE PCHOLD FORMAT EXL2K BYTOC END -* SECOND SECTION IN SECOND TAB -* THIS SECTION IS NOT PRINTING IN MY REPORT TABLE FILE ABC2 PRINT COL1 COL2 ON TABLE PCHOLD FORMAT EXL2K CLOSE END
Thanks in Advance...
RenjiThis message has been edited. Last edited by: Kerry,
W.F 769 Unix,Windows Excel, HTML, PDF,AHTML
July 20, 2011, 10:33 AM
Dave
Hi Renji,
I've run into the same problem.
I think this is what happens: When WF get a BYTOC it will do a 'SET COMPOUND CLOSE' before the last sheet. So you can not make an extra sheet after that.
It will work if the LAST sheet is using BYTOC.
Other question is: Why use a BYTOC if you have only 1 different value in your BY field?
_____________________ WF: 8.0.0.9 > going 8.2.0.5
July 21, 2011, 01:50 AM
Ramkumar - Webfous
BY TOTAL COMPUTE TITLESHEET/A90 = 'Weekly Detail '; NOPRINT
ON TABLE PCHOLD FORMAT EXL2K BYTOC
Hi Renji, This part doesn't seem to be logical. If for a Unique Single data Compute field, what is the purpose of BY or even BYTOC ?
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
July 29, 2011, 05:32 AM
Ian Dalton
Hi Ramkumar,
Try running: SET COMPOUND = OPEN TABLE FILE CAR COUNT MODEL BY COUNTRY ON TABLE PCHOLD FORMAT EXL2K END TABLE FILE CAR PRINT MODEL BY COUNTRY ON TABLE SET COMPOUND CLOSE ON TABLE PCHOLD FORMAT EXL2K BYTOC END
in the above you will get a summary tab plus a tab for each country and then compare to: SET COMPOUND = OPEN TABLE FILE CAR COUNT MODEL BY COUNTRY ON TABLE PCHOLD FORMAT EXL2K BYTOC END TABLE FILE CAR PRINT MODEL BY COUNTRY ON TABLE SET COMPOUND CLOSE ON TABLE PCHOLD FORMAT EXL2K END
in this one you will only get the tabs from the first part of the request. Hence the need to put BYTOC on the second PCHOLD statement.
In your case I agree it's not logical but it will work. nb. You must have at least one BY in each sub-request.