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 am creating a report in Dev Studio where the user will have several parameters to enter. If they do not enter a particular parameter, I want to return all rows for that column. If a value is entered for that parameter, then return only those rows that match the value entered. It seems that this should be a simple task to accomplish, but cannot figure it out. Help would be appreciated.
Posts: 26 | Location: Little Rock, AR | Registered: October 29, 2004
You can code (edit source) a -IF statement that checks the value of the parameter. If the parameter is blank, then goto a statement label after the WHERE.
Here's a quick example: TABLE FILE CAR PRINT CAR BY COUNTRY -IF &CNTRY EQ '' GOTO BYP1; WHERE (COUNTRY EQ '&CNTRY'); -BYP1 END
A special keyword FOC_NONE has been added to the FOCUS language that if returned to the reporting engine will bybass the parameter and return all values for that field.
When you add the ALL option to your dynamic parameter in the Layout Painter, this is the value that is returned to the server when ALL is chosen.
To use it in a parameter that a user type do something like this. the parameter name is COUNTRY for the example below.
-SET &COUNTRY = IF &COUNTRY.EVAL EQ '' THEN 'FOC_NONE' ELSE '&COUNTRY'; -RUN TABLE FILE CAR PRINT COUNTRY CAR MODEL DEALER_COST WHERE COUNTRY EQ &COUNTRY; END
Give this a try.This message has been edited. Last edited by: <Maryellen>,