[SOLVED] Page heading Display the parameter only on the first page
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 OFFThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6 HP AIX (SERVER) & XP (Local) all output
November 22, 2010, 01:39 PM
Darin Lee
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
November 22, 2010, 01:57 PM
OITTester
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
November 22, 2010, 03:08 PM
Crymsyn
I think the answers on this post cover what you wish to do
-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.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
November 23, 2010, 07:45 AM
OITTester
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
November 23, 2010, 07:46 AM
OITTester
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
November 23, 2010, 07:49 AM
OITTester
"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