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'm getting an error for a conditional statement I'm using, and I don't udderstand why webfocus is having problem with it. Here's my code: COMPUTE DIVISIONCODE1/A4 = EDIT(L2NAME, '99$$') || EDIT(L2NAME, '$$$9');
As Frank says, you are mixing DM with core FOCUS. Check out the various posts that have already dealt with the differences between these two "languages".
Then you might understand why you need to do this -
Thank you for responding. What I'm trying to accomplish here is to filter my data based on the value of L2Name column. I am using a launch page that uses a drop down box generated with the L2Name, and once I capture that I want to filter the data based on it. Now I'm thinking may be I can use a procedure just to generate a combo box with L2Name and another procedures that checks for the value of L2Name(and I don't know how to refer to a variable in another procedure) and execute a different focexec based on the value of L2Name. I have a deadline to meet by the end of today. The idea seems to be easy, I just don't know how to make it work in Webfocus!! Any advice?
WebFocus 7.1 Developer Studio
Posts: 35 | Location: Tallahassee,Florida | Registered: March 16, 2007
Tony, I took your suggestion. I modified my code to: TABLE FILE spdisplaypositiondistributiontwo PRINT COMPUTE DIVISIONCODE1/A4 = EDIT(L2NAME, '99$$') || EDIT(L2NAME, '$$$9');NOPRINT
COMPUTE DIVISIONCODE2/A4 = EDIT(L2NAME, '99$$') || EDIT(L2NAME, '$$9$');NOPRINT PAYROLLORGANIZATIONCODE L2NAME POSITIONNAME LUPOSITIONTYPEID DISTRIBUTIONPERCENT EXPANSIONOPTIONFULL OCCUPANTNAME GRANTNUMBER CATEGORYCODENAME WHERE L2NAME EQ '&DIVISIONNAME.DIVISIONNAME.' -SET &Div_Column = IF &DIVISIONNAME EQ '5201' THEN 'DIVISIONCODE1' ELSE 'DIVISIONCODE2'; WHERE PAYROLLORGANIZATIONCODE EQ &Div_Column
Now I'm getting this error:
COMPUTED FIELDS CAN ONLY BE REFERENCED IN A WHERE TOTAL (FOC009) INCOMPLETE REQUEST STATEMENT BYPASSING TO END OF COMMAND
WebFocus 7.1 Developer Studio
Posts: 35 | Location: Tallahassee,Florida | Registered: March 16, 2007
Robab, There are multiple ways you could handle this, with and without using DM code. If this works for you, great job.
One thing I noticed is that you've gone from two WHERE statements in you first fex (L2NAME and PAYROLLORGANIZATIONCODE) to only one in your last post (for L2NAME). You would get different results, but maybe that was intended because you've also changed the values of the output column (PAY_ORG_CODE)?
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