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     [SOLVED]a radio button for pdf orientation (portrait or landscape)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]a radio button for pdf orientation (portrait or landscape)
 Login/Join
 
Member
posted
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
 
Posts: 21 | Registered: October 16, 2012Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Platinum Member
posted Hide Post
And if aren't already passing &PDFORIENTATION, then just:
PAGESIZE='Letter',
ORIENTATION='&PDFORIENT.(LANDSCAPE,PORTRAIT).PDF Page Orientation.',
$
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Member
posted Hide Post
This works perfectly. Thank you very much!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 21 | Registered: October 16, 2012Report 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     [SOLVED]a radio button for pdf orientation (portrait or landscape)

Copyright © 1996-2020 Information Builders