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]Execute different fex based on variable selection

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]Execute different fex based on variable selection
 Login/Join
 
Gold member
posted
I am trying to execute different fex based on user selection. However it also give the chart of the first fex and exit out.

Here is my code:
 -DEFAULT &PROC='Security Type'

IF &PROC.QUOTEDSTRING EQ 'Security Type' THEN GOTO PROSTYPE ;
IF &PROC.QUOTEDSTRING EQ 'Fixed or Adjustable' THEN GOTO PROFA ;

-PROSTYPE
EX IBFS:/WFC/Repository/Investment_Analytics/Holdings/By_Security_Type/Portfolio_Holdings_PortfolioType.fex
-RUN
-GOTO THEEND;
-RUN

-PROFA
EX IBFS:/WFC/Repository/Investment_Analytics/Holdings/By_Rate_Type/Portfolio_Holdings_FA.fex
-RUN
-GOTO THEEND;
-RUN

-THEEND
-RUN

END
 


Here is error that I had.
-DEFAULT &PROC='Security Type'
IF 'Security Type' EQ 'Security Type' THEN GOTO PROSTYPE ;
IF 'Security Type' EQ 'Fixed or Adjustable' THEN GOTO PROFA ;
-PROSTYPE
EX Portfolio_Holdings_PortfolioType
-RUN
(FOC1517) UNRECOGNIZED COMMAND IF 'SECURITY TYPE' EQ 'SECURITY TYPE' THEN GOTO PROSTYPE ;
(FOC1517) UNRECOGNIZED COMMAND IF 'SECURITY TYPE' EQ 'FIXED OR ADJUSTABLE' THEN GOTO PROFA ;
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
0 NUMBER OF RECORDS IN TABLE= 15048 LINES= 1
ALPHANUMERIC RECORD NAMED SAVE
0 FIELDNAME ALIAS FORMAT LENGTH
EDATE MYY 6
TOTAL 6
0 NUMBER OF RECORDS IN GRAPH= 102 PLOT POINTS= 3
-GOTO THEEND;
-THEEND
-RUN
END

Any help are greatly appreciate it. Thank you

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


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 60 | Registered: March 02, 2015Report This Post
Expert
posted Hide Post
These are Dialogue Manager (DM) commands, and being such require the lines to start with a dash.
quote:
IF &PROC.QUOTEDSTRING EQ 'Security Type' THEN GOTO PROSTYPE ;
IF &PROC.QUOTEDSTRING EQ 'Fixed or Adjustable' THEN GOTO PROFA ;
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
It may be better practice to use the complete IF...THEN...ELSE syntax which would combine these lines into a single interpretable line.

Just thinking out loud here...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
We do something similar and provide the user with a DropDown box that they can select which option to run. The below is an example of one of our working examples where they can select the summary level they want.

 -SET &SUMMARY = &SUMMARIZED.(<Open Only,OPEN>,<All Invoices,ALL>,<By Part Number,BYPART>,<By Document Number,BYDOC>).;
-IF &SUMMARY = 'OPEN' THEN GOTO OPEN
- ELSE IF &SUMMARY = 'ALL' THEN GOTO BYALL
- ELSE IF &SUMMARY = 'BYPART' THEN GOTO BYPART
- ELSE IF &SUMMARY = 'BYDOC' THEN GOTO BYDOC
- ELSE GOTO Label1; 


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Report This Post
Gold member
posted Hide Post
Thank you Doug and Roger. It works.


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 60 | Registered: March 02, 2015Report 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]Execute different fex based on variable selection

Copyright © 1996-2020 Information Builders