Focal Point
[SOLVED]a radio button for pdf orientation (portrait or landscape)

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4537023926

March 08, 2013, 02:02 PM
JennyY
[SOLVED]a radio button for pdf orientation (portrait or landscape)
Hi all,

I would like to add a radio button for pdf orientation (portrait or landscape) when user select PDF output. However, I was stuck in the first step trying to add a user-input variable.
Could anyone shed some light on this problem? I've include code below. Thank you in advance.

TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
SEATS
DEALER_COST
RETAIL_COST
SALES
LENGTH
WIDTH
HEIGHT
WEIGHT
WHEELBASE
FUEL_CAP
BHP
RPM
MPG
ACCEL
WARRANTY
STANDARD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(,).Select type of display output.
ON TABLE SET STYLE *
-IF &WFFMT EQ 'IBI_DEFAULT' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'PDF' GOTO IBI_PDF ELSE IF &WFFMT EQ 'HTML' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'AHTML' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'FLEX' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'APDF' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'PPT' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ EXL2K GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'EXL2K FORMULA' GOTO IBI_DEFAULT ELSE IF &WFFMT EQ 'EXL2K PIVOT' GOTO IBI_DEFAULT;
-IBI_DEFAULT
$
-GOTO IBI_ENDSTYLE
-IBI_PDF
-IF &PDFORIENTATION EQ 'LANDSCAPE' GOTO PDFL ELSE IF &PDFORIENTATION EQ 'PORTRAIT' GOTO PDFP;
-PDFL
PAGESIZE='Letter',
ORIENTATION=LANDSCAPE,
-GOTO COMMON1
-PDFP
PAGESIZE='Letter',
ORIENTATION=PORTRAIT,
-GOTO COMMON1
-COMMON1
$
-GOTO IBI_ENDSTYLE
-IBI_ENDSTYLE
ENDSTYLE
END

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


WebFOCUS 7.6
Windows, All Outputs
March 09, 2013, 08:38 AM
Alex
If you are already passing &PDFORIENTATION AS 'LANDSCAPE' or 'PORTRAIT' why not just omit all of the dialogue manager and just make the line of code in the style section?
ORIENTATION='&PDFORIENTATION',


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
March 11, 2013, 02:59 AM
Twanette
And if aren't already passing &PDFORIENTATION, then just:
PAGESIZE='Letter',
ORIENTATION='&PDFORIENT.(LANDSCAPE,PORTRAIT).PDF Page Orientation.',
$

March 13, 2013, 12:08 PM
JennyY
This works perfectly. Thank you very much!


WebFOCUS 7.6
Windows, All Outputs