Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     URGENT!!! How to put 2 tabular report (TABLE) in one page
Go
New
Search
Notify
Tools
Reply
  
URGENT!!! How to put 2 tabular report (TABLE) in one page
 Login/Join
 
<billingboy>
posted
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.

Confused Confused Confused Confused

Thank you
 
Reply With QuoteReport This Post
<Viswa>
posted
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
 
Reply With QuoteReport This Post
<ineuxf>
posted
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.

Confused Confused Confused Confused

Thank you [/qb]
 
Reply With QuoteReport This Post
<ron>
posted
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.
 
Reply With QuoteReport This Post
<BjoernKiehne>
posted
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
 
Reply With QuoteReport This Post
<billingboy>
posted
Thanks for every reply but actually im using FOCUS on UNIX. Sorry I forgot to tell u that. is there any other ways else?
 
Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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>,
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Reply With QuoteReport This Post
<billingboy>
posted
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 Smiler
 
Reply With QuoteReport This Post
<billingboy>
posted
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 Smiler
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     URGENT!!! How to put 2 tabular report (TABLE) in one page

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.