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.
Trying to filter a JOIN based on a DEFINE field created earlier.
Is there an Order of precedence in which FOCUS commands are executed by WFRS?
Below code throughs Error message. Can anybody suggest what's wrong with below code?
DEFINE FILE CAR
profit/D12.2=CAR.BODY.RETAIL_COST - CAR.BODY.DEALER_COST;
END
JOIN
FILE CAR AT CAR.ORIGIN.COUNTRY
TO MULTIPLE
FILE CAR AT CAR.ORIGIN.COUNTRY TAG J0 AS J0
-*
WHERE J0.ORIGIN.COUNTRY EQ J0.ORIGIN.COUNTRY;
WHERE J0.BODY.profit GT 5000;
END
Thanks TryFocusThis message has been edited. Last edited by: Kerry,
Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
Posts: 82 | Location: Chicago | Registered: September 28, 2005
Thanks Waz. I was trying to implement this sort of logic using InfoAssist GUI. Can you suggest any work around to implement this as we are trying to achieve MATCH functionality.
Thanks TryFocus.
Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
Posts: 82 | Location: Chicago | Registered: September 28, 2005
Was trying to implement Above Posted code using InfoAssist GUI (No Editor).
(OR)
This Scenario in InfoAssist: 1. Couple of Defines on Table_1 2. Joining Table_1 to Table_2 on Real fields. 3. Join Filter condition on DEFINES based on Table_1.
Thanks
Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
Posts: 82 | Location: Chicago | Registered: September 28, 2005
1. WHERE's
2. DEFINE's
3. WHERE on DEFINE's
4. SORT
5. VERB (=PRINT or SUM)
6. PREFIX OPERATORS (FST. LST. MAX. etc)
… internal matrix is ready at this point …
7. COMPUTES
8. WHERE TOTAL
9. BY TOTAL
10. GENERATE TOTALS / SUBTOTALS etc.
11. RECAP's (based on subtotals)
12. STYLING + OUTPUT
In general:
WebFOCUS will offload as much as possible to the RDBMS
If 1 step cannot be offloaded to the RDBMS
that step will be solved by WebFOCUS
all following steps from that point will be solved by WebFOCUS
All steps after generating the Internal Matrix are always solved by WebFOCUS
I think you could fix the original join with the KEEPDEFINES = ON setting
Gary
quote:
KEEPDEFINES = ON DEFINE FILE CAR profit/D12.2=CAR.BODY.RETAIL_COST - CAR.BODY.DEALER_COST; END JOIN FILE CAR AT CAR.ORIGIN.COUNTRY TO MULTIPLE FILE CAR AT CAR.ORIGIN.COUNTRY TAG J0 AS J0 -* WHERE J0.ORIGIN.COUNTRY EQ J0.ORIGIN.COUNTRY; WHERE J0.BODY.profit GT 5000; END
Posts: 29 | Location: Seattle Washington | Registered: July 08, 2009