Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Last report gets displayed with one row per page in Comp PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Last report gets displayed with one row per page in Comp PDF
 Login/Join
 
Silver Member
posted
Hi, I creating a compound PDF. I have included 2 reports.first report in page1 and second report in page2.
But the second report is getting displayed with one row per page.
Pls note that I have included a BY field in each report.
I have attached the code


-*APP HOLD Suresh
-SET &ECHO = ALL;
-SET &RPTDATE = 'SYSDATE'

SQL SQLORA SET SERVER DR_UTIL
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.338 1.433), DIMENSION=(3.692 2.333), METADATA='Z-INDEX: 100; LEFT: 0.638in; OVERFLOW: auto; WIDTH: 2.292in; POSITION: absolute; TOP: 6.833in; HEIGHT: 0.833in', $
PAGELAYOUT=2, NAME='Page layout 2', text='Page layout 2', TOC-LEVEL=2, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report2', TEXT='report2',POSITION=(0.338 1.133),$
END

-DEFAULT &ProductName = 'NETX360';


SET COMPONENT='report1'

SQL SQLORA

SELECT MONTH AS TIMECOL,
STATS_TYPE,
value AS LOGINS
FROM PROD_LOGIN_TRENDS WHERE
MONTH BETWEEN ADD_MONTHS(TRUNC(ADD_MONTHS(TRUNC(&RPTDATE,'MM'), -0),'MM'), +1 - 7) AND ADD_MONTHS(TRUNC(&RPTDATE,'MM'),-1)
AND PRODUCT = '&ProductName'
AND STATS_TYPE in ('Total Logins','Unique Logins','IBD Logins','Total Transactions')
ORDER BY MONTH;


SQL SQLORA END SESSION;

TABLE FILE SQLOUT
PRINT
TIMECOL
STATS_TYPE
LOGINS
AND
COMPUTE TRANSDATE/YYMD = HDATE(TIMECOL, 'YYMD');
TIMELINE/MtY=TRANSDATE;
ON TABLE HOLD AS TABLE_TOTLOG
END
-RUN
-TYPE &RECORDS
-IF &RECORDS = 0 THEN GOTO NOREP1 ELSE GOTO PRINTOUT1;
-NOREP1
SQL SQLORA
SELECT SYSDATE AS TO_DATE FROM DUAL;
SQL SQLORA END SESSION;
TABLE FILE SQLOUT
PRINT TO_DATE NOPRINT

HEADING
"Login Trends"
""
""
"No Data to Display"

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *

TYPE=HEADING,
SIZE=12,
LINE=1,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=10,
LINE=4,
COLOR='RED',
$
END
-GOTO ENDREP1


-PRINTOUT1
TABLE FILE TABLE_TOTLOG
SUM
LOGINS/I9C AS ''
BY STATS_TYPE ROWS 'Total Logins' OVER 'Unique Logins' OVER 'IBD Logins'
OVER 'Total Transactions'
ACROSS TIMELINE AS ''
HEADING
"Login Trends"
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
-*ON TABLE SET COMPOUND OPEN
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$

TYPE=REPORT,
FONT='ARIAL',
SIZE=8,
-* TOPMARGIN=-2.25,
-* BOTTOMMARGIN=-25,
$
TYPE=DATA,
COLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-STYLE=SOLID,
BORDER-BOTTOM-STYLE=SOLID,
BORDER-LEFT-STYLE=SOLID,
BORDER-RIGHT-STYLE=SOLID,
FONT='TIMES NEW ROMAN',
-*BACKCOLOR=RGB(238 238 238),
BACKCOLOR='WHITE',
STYLE=BOLD,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
-*BACKCOLOR=RGB(238 238 238),
BACKCOLOR='WHITE',
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TITLE,
COLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-STYLE=SOLID,
BORDER-BOTTOM-STYLE=SOLID,
BORDER-LEFT-STYLE=SOLID,
BORDER-RIGHT-STYLE=SOLID,
FONT='TIMES NEW ROMAN',
-*BACKCOLOR=RGB(238 238 238),
BACKCOLOR=RGB(168 169 173),
COLOR = 'WHITE',
$
TYPE=TITLE,
ACROSSCOLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
-*BACKCOLOR=RGB(238 238 238),
BACKCOLOR=RGB(168 169 173),
COLOR = 'WHITE',
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=8,
$
TYPE=ACROSSVALUE,
ACROSS=1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
SIZE=8,
COLOR='BLACK',
-*BACKCOLOR='BLUE',
BACKCOLOR=RGB(168 169 173),
STYLE=BOLD,
JUSTIFY = CENTER,

$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=ACROSSTITLE,
ACROSS=1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
-*BACKCOLOR='BLUE',
BACKCOLOR=RGB(168 169 173),
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
TYPE=REPORT,
COLUMN=N2,
SIZE=9,
WIDTH=0.6,
WRAP=0.6,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N3,
SIZE=9,
WIDTH=0.65,
WRAP=0.65,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N4,
SIZE=9,
WIDTH=0.65,
WRAP=0.65,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N5,
SIZE=9,
WIDTH=0.65,
WRAP=0.65,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N6,
SIZE=9,
WIDTH=0.65,
WRAP=0.65,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N7,
SIZE=9,
WIDTH=0.65,
WRAP=0.65,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
ENDSTYLE
END
-ENDREP1

SET COMPONENT='report2'
SQL SQLORA

SELECT MONTH, TIME_FRAME,
TOTAL_LOGINS AS LOGINS
FROM PROD_LOGIN_BY_HOURS
WHERE PRODUCT = '&ProductName'
AND MONTH BETWEEN ADD_MONTHS(TRUNC(ADD_MONTHS(TRUNC(&RPTDATE,'MM'), -0),'MM'), +1 - 7) AND ADD_MONTHS(TRUNC(&RPTDATE,'MM'),-1)
ORDER BY MONTH, TIME_FRAME ASC;

SQL SQLORA END SESSION;

TABLE FILE SQLOUT
PRINT
MONTH
TIME_FRAME
LOGINS
AND
COMPUTE TRANSDATE/YYMD = HDATE(MONTH, 'YYMD');
TIMELINE/MtY=TRANSDATE;
ON TABLE HOLD AS TABLE_LOGIN_HRS
END
-RUN
-TYPE &RECORDS
-IF &RECORDS = 0 THEN GOTO NOREP2 ELSE GOTO PRINTOP2;
-NOREP2

SQL SQLORA
SELECT SYSDATE AS TO_DATE FROM DUAL;
SQL SQLORA END SESSION;
TABLE FILE SQLOUT
PRINT TO_DATE NOPRINT

HEADING
"Total Logins By Hours"
""
""
"No Data to Display"

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *

TYPE=HEADING,
SIZE=12,
LINE=1,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=10,
LINE=4,
COLOR='RED',
$
END
-GOTO ENDREP2

-PRINTOP2


TABLE FILE TABLE_LOGIN_HRS
SUM
LOGINS/I9C AS ''
BY TIME_FRAME ROWS '12AM-8AM' OVER '8AM-9AM' OVER
'9AM-10AM' OVER '10AM-11AM' OVER '11AM-12PM'
OVER '12PM-1PM' OVER '1PM-2PM' OVER
'2PM-3PM' OVER '3PM-4PM' OVER 'AFTER4PM'
ACROSS TIMELINE AS ''
HEADING
"Total Logins By Hours"
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
-*ON TABLE SET COMPOUND OPEN
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET COMPOUND CLOSE
-*ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=8,
$
TYPE=REPORT,
COLUMN=N2,
JUSTIFY=RIGHT, $

$
TYPE=REPORT,
COLUMN=N2,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N3,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N4,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N5,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N6,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=REPORT,
COLUMN=N7,
SIZE=9,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=DATA,
COLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-STYLE=SOLID,
BORDER-BOTTOM-STYLE=SOLID,
BORDER-LEFT-STYLE=SOLID,
BORDER-RIGHT-STYLE=SOLID,
FONT='TIMES NEW ROMAN',
BACKCOLOR=RGB(255 255 255),
STYLE=BOLD,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
BACKCOLOR=RGB(255 255 255),
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TITLE,
COLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
BORDER-TOP-STYLE=SOLID,
BORDER-BOTTOM-STYLE=SOLID,
BORDER-LEFT-STYLE=SOLID,
BORDER-RIGHT-STYLE=SOLID,
FONT='TIMES NEW ROMAN',
BACKCOLOR=RGB(238 238 238),
COLOR = RGB(0 0 0),
JUSTIFY=RIGHT,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=TITLE,
ACROSSCOLUMN=N1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
BACKCOLOR=RGB(238 238 238),
COLOR = RGB(0 0 0),
JUSTIFY=RIGHT,
WIDTH=0.5,
WRAP=0.5,
LEFTGAP=0.0,
RIGHTGAP=0.0,
BOTTOMGAP=0.0,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=8,
$
TYPE=ACROSSVALUE,
ACROSS=1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
SIZE=8,
COLOR='BLACK',
-*BACKCOLOR='BLUE',
BACKCOLOR=RGB(168 169 173),
STYLE=BOLD,
JUSTIFY = CENTER,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=ACROSSTITLE,
ACROSS=1,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=LIGHT,
BORDER-RIGHT=LIGHT,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='WHITE',
-*BACKCOLOR='BLUE',
BACKCOLOR=RGB(168 169 173),
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END
-ENDREP2

COMPOUND END


Please help.

This message has been edited. Last edited by: Kerry,


769
Windows

Using all the above
 
Posts: 34 | Registered: August 08, 2009Report This Post
Member
posted Hide Post
First, try to set the boundaries for your report contents. Use the parameters such as LEFTMARGIN, RIGHTMARGIN, TOPMARGIN and BOTTOMMARGIN by calling them in UNITS attribute of the Style sheet. Also, specify the page size for your report content and here you use PAGESIZE parameter by calling it in UNITS attribute of the Style sheet.


Version: WebFOCUS 7.6.6
O.S. WebFOCUS is mounted on Unix
Output Report: HTML, Excel, CSV, PDF and TXT
 
Posts: 14 | Registered: November 24, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Last report gets displayed with one row per page in Comp PDF

Copyright © 1996-2020 Information Builders