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.
Anyone know how to compute a subtotal in the recap section? I'm doing something like this:
-------------------------------------- TABLE FILE TEMP PRINT COUNT_T1 COUNT_T2 ON TEMP_FLAG RECAP TOTAL/D20 = COUNT_T1 + COUNT_T2; ON TABLE SUBFOOT "<+>TOTAL<+>" ON TABLE SET STYLE * TYPE = SUBFOOT , HEADALIGN = BODY , $ ENDSTYLE END -RUN -EXIT --------------------------------------
In a SUBFOOTER I want to display ST.COUNT_T1 with a $ in 'some' situations. Any thoughts?
Aaron M Reiff Prod - WebFocus 7.66 Prod - ReportCaster 5 Win Server 2K/ISAPI/MSSQL Server 2K -------------------- Test - WebFocus 7.66 Win Server 2003/TomCat/MSSQL Server 2K -------------------- Dev - WebFocus 7.66 Win Server 2003/TomCat/MSSQL Server 2K
Do you really need the RECAP? Can't you just DEFINE the field you need to subtotal and then include that field in your subfoot? Then you could conditionally display the subfoot summary (with/without $) based on a WHEN.
Here's the example included in the Creating Reports with WF Language documentation, Chapter Including Totals and Subtotals, Topic Conditionally Displaying Summary Lines and Text
TABLE FILE GGSALES SUM UNITS DOLLARS BY REGION BY CATEGORY ON REGION SUBTOTAL WHEN DOLLARS GT 11500000 SUBFOOT "The total for the (REGION region is less than 11500000." WHEN DOLLARS LT 11500000 END
To display properly, I changed the lessthan REGION to (REGION
This will cause the subtotal to be displayed when the DOLLARS subtotal is greater than 11500000 and the SUBFOOT text will display when the DOLLARS subtotal is less than 11500000.
Deb
P.S. Here's another possibility . . . Use the RECOMPUTE instead of RECAP. If you DEFINE or COMPUTE your Total field, you can include it in the RECOMPUTE and also include the prefix operator SUM. COUNT_T1. It should look something like ON TABLE RECOMPUTE Total SUM. COUNT_T1
DebThis message has been edited. Last edited by: debbiej,
WebFOCUS 7.6.11 on Win2003 Server WebFOCUS 7.7.03 on Win2003 Server Published, AdHoc, ReportCaster Output in all variants of Excel
I wanted to use the recap because I'm using it for another reason and had it around anyway. In the end, I tried this:
ON FLAG RECAP THIS_TOTAL/A30 = IF FLAG EQ 'A' THEN FTOA(SUM.COUNT_T1, '(D20BM)', THIS_TOTAL) ELSE FTOA(SUM_COUNT_T1, '(D20)', THIS_TOTAL); ... ... ...
This got the desired result of a $ in the situations I wanted. Thanks for the help!
A
Aaron M Reiff Prod - WebFocus 7.66 Prod - ReportCaster 5 Win Server 2K/ISAPI/MSSQL Server 2K -------------------- Test - WebFocus 7.66 Win Server 2003/TomCat/MSSQL Server 2K -------------------- Dev - WebFocus 7.66 Win Server 2003/TomCat/MSSQL Server 2K