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     Dialogue Manager Help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dialogue Manager Help
 Login/Join
 
Member
posted
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.

-DEFAULT &WFFMT = '';
-IF &WFFMT EQ 'PDF' GOTO PDF1;
-IF &WFFMT EQ 'EXL2K' GOTO EXL2K1;

-********* PDF OPTION ******
-PDF1

TABLE FILE ...
...
ON TABLE SET ONLINE-FMT &WFFMT
END

-********* EXCEL OPTION ******
-EXL2K1

TABLE FILE ...
...
ON TABLE SET ONLINE-FMT &WFFMT
END
-EXIT
 
Posts: 18 | Location: Saint Louis | Registered: April 01, 2005Report This Post
Silver Member
posted Hide Post
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, 2003Report This Post
Master
posted Hide Post
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>,
 
Posts: 865 | Registered: May 24, 2004Report This Post
Member
posted Hide Post
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

This works for me!
 
Posts: 3 | Location: Nevada Texas | Registered: September 13, 2004Report This Post
Guru
posted Hide Post
Here is another way of doing it:

-SET &OUTPUT_CMD = DECODE &WFFMT(
- 'HTML' 'ON TABLE SET ONLINE-FMT HTML'
- 'PDF' 'ON TABLE SET ONLINE-FMT PDF'
- 'EXL2K' 'ON TABLE PCHOLD FORMAT EXL2K'
- 'EXL2K FORMULA' 'ON TABLE PCHOLD FORMAT EXL2K FORMULA'
- 'EXL2K PIVOT' 'ON TABLE PCHOLD FORMAT EXL2K PIVOT'
- 'EXL97' 'ON TABLE PCHOLD FORMAT EXL97'
- 'EXCEL' 'ON TABLE PCHOLD FORMAT EXCEL'
- ELSE ' ') ;[/code]

This message has been edited. Last edited by: <Mabel>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Member
posted Hide Post
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, 2005Report This Post
Expert
posted Hide Post
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, 2003Report 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     Dialogue Manager Help

Copyright © 1996-2020 Information Builders