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.
There I am attempting to pass 'ITALY' OR 'ENGLAND' as the actual parameter. Note that single quotes are part of the value; therefore, you'd adjust your WHERE condition slightly:
-* test.fex
TABLE FILE CAR
PRINT COUNTRY
WHERE COUNTRY EQ &CNTY ;
END
Rifaz, are you using HTML Composer to design a parameter screen? If so, a control with the multiple option selected will automatically pass the multiple values with the OR inserted between each selected value. Depending on how you developed the report and the parameter screen, you can also have AND or commas separating the multiple values.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
The %20 and %27 are from a tool called URL Encoding.
If you have
WHERE COUNTRY EQ &CNTY
And you pass the parameters as in njsden's example above, WebFOCUS would have an ordinary string as the parameter value, without the encoded characters. So that it would resolve to
WHERE COUNTRY EQ 'ITALY' OR 'ENGLAND'
Your web server logs (not focus traces) would be the place to capture whether the URLS had encoded characters. They show the % signs and so forth.
Passing multiple values with the same name will cause index'd variables in WebFOCUS
If you pass this URL: /ibi_apps/WFServlet?IBIF_ex=test&CNTY=ITALY and you would do
-? &CNTY in your test.fex it will show you:
CURRENTLY DEFINED & VARIABLES STARTING WITH 'CNTY':
&CNTY = ITALY
If you pass this URL: /ibi_apps/WFServlet?IBIF_ex=test&CNTY=ITALY&CNTY=ENGLAND&CNTY=JAPAN
-? &CNTY in your test.fex it will show you:
CURRENTLY DEFINED & VARIABLES STARTING WITH 'CNTY':
&CNTY = ITALY
&CNTY0 = 3
&CNTY1 = ITALY
&CNTY2 = ENGLAND
&CNTY3 = JAPAN
Variable &CNTY0 will tell you how many &CNTYxx variables there are. Variable &CNTY will always be the same as the first index'd variable (&CNTY1)
In your fex you can do something like this:
-DEFAULTH &CNTY0 = 0;
TABLE FILE CAR
SUM
DEALER_COST
BY COUNTRY
WHERE COUNTRY EQ &CNTY.QUOTEDSTRING
-REPEAT :LB_LOOP_CNTY FOR &I FROM 2 TO &CNTY0;
OR &CNTY.&I.QUOTEDSTRING
-:LB_LOOP_CNTY
;
END