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     [SOLVED] Page heading Display the parameter only on the first page
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Page heading Display the parameter only on the first page
 Login/Join
 
Member
posted
In report Painter, I have selected the page heading to display the heading of the report and the parameters. The report title (USA Cars) should display on all the pages and the parameters should only display on the first page. I have used report heading for the parameters, but the parameters are displayed before the title of the report which is not working for me. Can anyone help?


TABLE FILE CAR
PRINT
'CAR.BODY.BODYTYPE'
'CAR.SPECS.WIDTH'
'CAR.SPECS.MPG'
HEADING
" "
"USA Cars"
" "
"BodyTye: &BODYTYPE"
" "
FOOTING
""
WHERE CAR.BODY.BODYTYPE EQ &BODYTYPE.(OR(FIND BODYTYPE,CAR.BODY.BODYTYPE IN car)).Body Type.;
ON TABLE SET PAGE-NUM OFF

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


WebFOCUS 7.6
HP AIX (SERVER) & XP (Local)
all output
 
Posts: 13 | Location: MD | Registered: October 08, 2010Reply With QuoteReport This Post
Virtuoso
posted Hide Post
There isn't any "built-in" syntax to get what you need. Heading ONLY displays EVERYTHING in the HEADING section at the top of EVERY page.
You may want to try putting the parameters into a SUBHEAD and see if that works like you need.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteReport This Post
Member
posted Hide Post
I have tried using SUBHEAD, this will display the parameters on top before the report heading or title. Is there any other way to have the parameters only on the first page.


WebFOCUS 7.6
HP AIX (SERVER) & XP (Local)
all output
 
Posts: 13 | Location: MD | Registered: October 08, 2010Reply With QuoteReport This Post
Gold member
posted Hide Post
I think the answers on this post cover what you wish to do

Conditional Report Header


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 77 | Registered: November 08, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
A bit "sledge hammer and nut" job, but it works -

-SET &Parm1 = 'Parameter 1';
-SET &Parm2 = 'Parameter 2';
TABLE FILE CAR
  SUM RCOST   AS 'Retail Cost'
      DCOST   AS 'Dealer Cost'
      COMPUTE ParmLine1/A100 = IF TABPAGENO EQ 1 THEN 'Parm 1: &Parm1.EVAL' ELSE ''; NOPRINT
      COMPUTE ParmLine2/A100 = IF TABPAGENO EQ 1 THEN 'Parm 2: &Parm2.EVAL' ELSE ''; NOPRINT
   BY COUNTRY AS 'Country' PAGE-BREAK
   BY CAR     AS 'Manufacturer'
   BY MODEL   AS 'Model'
HEADING
"Worldwide Cars"
" "
"<ParmLine1"
"<ParmLine2"
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
  GRID=OFF, SIZE=9, $
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Member
posted Hide Post
All,

I think this will work but how do I include it in the below report.
#
-IF &USEPI NE 1 GOTO SKIP_THIS;
"Proprietary Information"
-GOTO NEXT_1
-SKIP_THIS
"Report Name"
-NEXT_1
#

I need "Worldwide Cars" to print in all pages and
"World Counties: "Car Bodytype: &BODYTYPE "
" "
To print only on the first page

Thanks,

`````````````````````````````
TABLE FILE CAR
SUM
'CAR.BODY.RETAIL_COST' AS 'Retail Cost'
'CAR.BODY.DEALER_COST' AS 'Dealer Cost'
BY 'CAR.ORIGIN.COUNTRY' AS 'Country'
BY 'CAR.COMP.CAR' AS 'Manufacturer'
BY 'CAR.CARREC.MODEL' AS 'Model'

ON CAR.ORIGIN.COUNTRY PAGE-BREAK
HEADING
"Worldwide Cars"
" "
"World Counties: "Car Bodytype: &BODYTYPE "
" "
WHERE ( CAR.ORIGIN.COUNTRY EQ '&COUNTRY.(FIND COUNTRY,CAR.ORIGIN.COUNTRY IN car).World Counties.' ) AND ( CAR.BODY.BODYTYPE EQ &BODYTYPE.(OR(FIND BODYTYPE,CAR.BODY.BODYTYPE IN car)).Car Bodytype. );
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=9,
$
ENDSTYLE
END
``````````````````````````````````````


WebFOCUS 7.6
HP AIX (SERVER) & XP (Local)
all output
 
Posts: 13 | Location: MD | Registered: October 08, 2010Reply With QuoteReport This Post
Member
posted Hide Post
TABLE FILE CAR
SUM
'CAR.BODY.RETAIL_COST' AS 'Retail Cost'
'CAR.BODY.DEALER_COST' AS 'Dealer Cost'
BY 'CAR.ORIGIN.COUNTRY' AS 'Country'
BY 'CAR.COMP.CAR' AS 'Manufacturer'
BY 'CAR.CARREC.MODEL' AS 'Model'

ON CAR.ORIGIN.COUNTRY PAGE-BREAK
HEADING
"Worldwide Cars"
" "
"World Counties: "Car Bodytype: &BODYTYPE "
" "
WHERE ( CAR.ORIGIN.COUNTRY EQ '&COUNTRY.(FIND COUNTRY,CAR.ORIGIN.COUNTRY IN car).World Counties.' ) AND ( CAR.BODY.BODYTYPE EQ &BODYTYPE.(OR(FIND BODYTYPE,CAR.BODY.BODYTYPE IN car)).Car Bodytype. );
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=9,
$
ENDSTYLE
END


WebFOCUS 7.6
HP AIX (SERVER) & XP (Local)
all output
 
Posts: 13 | Location: MD | Registered: October 08, 2010Reply With QuoteReport This Post
Member
posted Hide Post
"Car Bodytype: &BODYTYPE "
" "
WHERE ( CAR.ORIGIN.COUNTRY EQ '&COUNTRY.(FIND COUNTRY,CAR.ORIGIN.COUNTRY IN car).World Counties.' ) AND ( CAR.BODY.BODYTYPE EQ &BODYTYPE.(OR(FIND BODYTYPE,CAR.BODY.BODYTYPE IN car)).Car Bodytype. );
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=9,
$
ENDSTYLE
END


WebFOCUS 7.6
HP AIX (SERVER) & XP (Local)
all output
 
Posts: 13 | Location: MD | Registered: October 08, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Page heading Display the parameter only on the first page

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