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.
I wish to do a dialogue manager statement that allows the user to select which format (PDF or EXCL2K) he/she wants and then the correct portion of the report will run. The code I am using is below but it will not work correctly if I select EXL2K. It works when I choose PDF.
Try putting a semicolon at the end of the default and if statements. Supposedly the semicolon is required. Maybe that's why it's not recognizing the next statement.
Raelene
Posts: 31 | Location: Oklahoma City, OK | Registered: September 11, 2003
It is importance to try and state what version of the product you are using because wit WebFOCUS 5.3 and up you no longer have to have seperate sections of code to choose the output format. What you are aksing for can be done with the below code: ]ON TABLE PCHOLD FORMAT &WFFMT.(,,,,).Select type of display output.[/code]This message has been edited. Last edited by: <Mabel>,
Will try doing this in Dialogue Manager: -SET &OUTFMT = &WFFMT.(HTML,EXCEL,PDF).Select type of display output.; -IF &OUTFMT = 'HTML' THEN GOTO SETDISPLAY1; -IF &OUTFMT = 'EXCEL' THEN GOTO SETDISPLAY2; -IF &OUTFMT = 'PDF' THEN GOTO SETDISPLAY3; -SETDISPLAY1 -SET &DISP_FORMAT = 'HTML'; -GOTO END_FORMAT -SETDISPLAY2 -SET &DISP_FORMAT = 'EXL2K'; -GOTO END_FORMAT -SETDISPLAY3 -SET &DISP_FORMAT = 'PDF'; -END_FORMAT Then in your report style section you can use -IF &DISP_FORMAT NE 'HTML' THEN GOTO HTMLDONE; ...style for HTML -HTMLDONE -IF &DISP_FORMAT NE 'PDF' THEN GOTO PDFDONE; ...style for PDF -PDFDONE $ -IF &DISP_FORMAT NE 'EXL2K' THEN GOTO EXLDONE; ... style for EXL2K -EXLDONE then ON TABLE SET ONLINE-FMT &DISP_FORMAT
Sorry about the version issue. We're using WF 5.2.3, but next week we're supposed to upgrade to 5.3. If that's the case, I can wait a week if it'll be that much easier to do in 5.3.
Thanks for your input. I'll try it out and see what happens.
Posts: 18 | Location: Saint Louis | Registered: April 01, 2005
Will, make sure that at the end of your PDF paragraph, you GOTO some endofjob label. If your user picks pdf, your program does both. you might also want to default your output to something other than a blank. or... -DEFAULT &WFFMT = 'HTML'; -SET &OUTPHRASE = DECODE &WFFMT - ('PDF' 'ON TABLE PCHOLD FORMAT PDF' - 'EXCEL' 'ON TABLE PCHOLD FORMAT EXL2K' - ELSE '' ); TABLE FILE CAR ... &OUTPHRASE.EVAL END
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003