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 have a subtotal on a report, and i use drill a down menu on it. However, it highlights everything, even the "0" values and the word "TOTAL", how do i specify, to only drill down on values that are GT 0?
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~ PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server) TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=SUBTOTAL, ACROSSCOLUMN=SALES, FOCEXEC=SS, WHEN=SALES GT 0, $
ENDSTYLE
END
I use an ACROSS to be able to have some zeros in the subtotals.
The key is to specify the column name in the drilldown stylesheet entry (in my case, ACROSSCOLUMN=SALES) and to add the WHEN (WHEN=SALES GT 0) clause.
PS. I like your name, MadamZuZu.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
however, i use ON TABLE SUBTOTAL, and in the stylesheet i'm using "GRANDTOTAL" instead of "SUBTOTAL", it seems to be working with SUBTOTAL, but not with GRANDTOTAL.
why is that?
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~ PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server) TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ACROSS SEATS COLUMNS 2 AND 3 AND 4 AND 5
ON COUNTRY SUBTOTAL AS 'Sub Total'
ON TABLE SUBTOTAL AS 'Total'
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=SALES, FOCEXEC=SS, WHEN=SALES GT 0, $
ENDSTYLE
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
i'm also using SUM CNT.MYFIELD... so in the sylesheet i used CNT.MYFIELD as well, is that correct? could that be the problem?
i played with the car table file for a little bit, and
this works:
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=SUBTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END
this doesn't
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~ PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server) TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
This works just fine. The drilldown is on the non-zero columns of the grand total line.
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS COLUMNS 2 AND 3 AND 4 AND 5
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END
When you say "this doesn't (work)", what do you mean?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
TABLE FILE CAR
SUM CNT.SALES NOPRINT
COMPUTE DUMMY/I5=CNT.SALES;
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=DUMMY, FOCEXEC=SS, WHEN=DUMMY GT 5, $
ENDSTYLE
END
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~ PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server) TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode