Forums
FOCUS/WebFOCUS
URGENT!!! How to put 2 tabular report (TABLE) in one page|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
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 |
||
|
|
Silver Member |
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 |
|||
|
|
Member |
|
|||
|
|
Member |
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.
|
|||
|
|
Member |
Or try this one:
-TYPE WEBFOCUS CGIVAR IBIWF_mreports=frame -TYPE WEBFOCUS CGIVAR IBIWF_mrcolumns=2 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 |
|||
|
|
Member |
Thanks for every reply but actually im using FOCUS on UNIX. Sorry I forgot to tell u that. is there any other ways else?
|
|||
|
|
Platinum Member |
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, Mikel This message has been edited. Last edited by: <Mabel>, |
|||
|
|
Member |
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 |
|||
|
|
Member |
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 sounds like a stupid way but it works Thanks again |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
Forums
FOCUS/WebFOCUS
URGENT!!! How to put 2 tabular report (TABLE) in one page
