URGENT!!! How to put 2 tabular report (TABLE) in one page
I want to put more than one TABLE command in one page. For now, I believe that everytime i put TABLE....END command it will start new page. for example:
TABLE CAR PRINT * END
TABLE MOTORCYCLE PRINT * END
From my understanding, this will make 2-page report. Is there anyway to make both of them display in 1 page.
Thank you
March 12, 2004, 10:22 AM
<Viswa>
Hey
Try this code
TABLE FILE CAR PRINT CAR MODEL COUNTRY ON TABLE HOLD AS FIRST FORMAT HTMTABLE END
TABLE FILE CAR PRINT COUNTRY MODEL CAR ON TABLE HOLD AS SECOND FORMAT HTMTABLE END
-HTMLFORM BEGIN
< !-- WEBFOCUS TABLE FIRST > < !-- WEBFOCUS TABLE SECOND >
-HTMLFORM END
Thanks Viswa
March 12, 2004, 10:41 AM
<ineuxf>
quote:
Originally posted by billingboy: [qb] I want to put more than one TABLE command in one page. For now, I believe that everytime i put TABLE....END command it will start new page. for example:
TABLE CAR PRINT * END
TABLE MOTORCYCLE PRINT * END
From my understanding, this will make 2-page report. Is there anyway to make both of them display in 1 page.
Thank you [/qb]
March 12, 2004, 12:21 PM
<ron>
Each of your TABLE requests will generate a separate query. If you embedded both queries in the same FOCEXEC and run it online, the results of the car query would be displayed first and then the motorcycle query. It is possible that each query could return more data than could be contained on one page. Now, if you route the output of both queries to the same file using OFFLINE, each query would generate a page control character. You could write your own report formatting and WRITE each line to a file.
TABLE FILE CAR HEADING "DETAILBERICHT" "" PRINT DEALER_COST ACROSS COUNTRY BY CAR WHERE COUNTRY NE 'JAPAN' WHERE COUNTRY NE 'FRANCE' WHERE CAR NE 'TRIUMPH' END -RUN
TABLE FILE CAR HEADING "FML Bericht" "" SUM DEALER_COST ACROSS COUNTRY FOR CAR "A und B Autonamen" LABEL TEXT1 OVER A$$$$$$$$$$$ AS 'A Autonamen' LABEL A OVER B$$$$$ AS 'B Autonamen' LABEL B OVER "C und M Autonamen" LABEL TEXT2 OVER M$$$$$$$$ AS 'M Autonamen' LABEL M OVER J$$$$$$$$ AS 'J Autonamen' LABEL J OVER BAR AS '=' OVER RECAP SUMME=A+B; AS 'Summe Automarken A und B' END -RUN
Greetings Bjoern
March 15, 2004, 01:55 AM
<billingboy>
Thanks for every reply but actually im using FOCUS on UNIX. Sorry I forgot to tell u that. is there any other ways else?
March 15, 2004, 07:16 AM
Mikel
Printer page? Screen page? In order to avoid page-breaks in printer or file output, try SET PAGE = NOPAGE combined with the appropiated logical assignment of OFFLINE.
SET PAGE = NOPAGE OFFLINE -RUN
TABLE FILE CAR PRINT COUNTRY END -RUN
TABLE FILE EMPDATA PRINT LASTNAME END -RUN
OFFLINE CLOSE ONLINE -RUN[/code]Regards, MikelThis message has been edited. Last edited by: <Mabel>,
March 16, 2004, 08:27 AM
<billingboy>
Thanks everyone I fixed it by using SET PAGE= NOPAGE before the table that I dont want it to do page-break and use SET PAGE=OFF before the table that I want it to do page-break
It might sound like a stupid way but it works
Thanks again
March 16, 2004, 08:27 AM
<billingboy>
Thanks everyone I fixed it by using SET PAGE= NOPAGE before the table that I dont want it to do page-break and use SET PAGE=OFF before the table that I want it to do page-break