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 need to conditionally skip a where condition based on the previous where condition. Here is my code. BY Customer_Name AS 'Customer/Name' BY PARTNO WHERE ( CO EQ '&iComp.EVAL' ); WHERE ( YM GE '&CURP.EVAL' ) AND ( EXTRACTYM GE '&CURPE.EVAL' ) AND ( YM LE '&NEXT5P.EVAL' ) AND ( EXTRACTYM LE '&NEXT5P.EVAL' ); WHERE (PLTCODE EQ '&PLANT'); WHERE (CUST EQ '&CUST') ; WHERE (PC NE 'N0A10' OR 'N0A20' OR 'A0X01'); &CUSTNAME_IND.EVAL WHERE (CUSTNAME LIKE '&CUSTNAMEL.EVAL') ; WHERE (PC EQ '&PC') ; -IF &iComp EQ 'C' GOTO AAA; WHERE (RBU EQ '&BU') -AAA ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL I need to skip the check for RBU if the Company is 'C'
Are you talking about autoprompting? If so, I don't think that will solve your problem. WF will parse the fex looking for all unresolved variables. At that point, both iComp and BU are unresolved so they will both be prompted for, but they don't necessarily both need to have values supplied. Otherwise, your best bet is to create a customized launch page where you control all of the parameters and when/if they appear.
Code-wise, Daniel's WHERE statement using OR is your best bet.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Auto-prompting by WebFOCUS only happens upfront and so cannot be dynamic as you need. You may need a custom web page for users to provide the selection criteria, and in there have some javascript that dynamically makes the RBU/&BU input field appear/disappear as needed depending upon the company selected.
WF 8.009 on Windows Server 2012/IIS/WebSphere; client: Windows 7
Posts: 7 | Location: St Louis, MO | Registered: July 17, 2008