Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] New Column desc based on SUBTOTAL value .

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] New Column desc based on SUBTOTAL value .
 Login/Join
 
Gold member
posted
Hi,
I need to display the description next to SUBTOTAL and I have more than one SUBTOTAL.
Example:
For CAR subtotal I want in the desc as CAR and for COUNTRY subtotal I want as COUNTRY in the column DESC. Can this be implemented using DEFINE ?

 SET BYDISPLAY=ON
DEFINE FILE CAR
DESC/A20V= 'DATA';
END

TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
DESC
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS 'Total For:'
ON CAR SUBTOTAL AS 'Total For :'
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,JUSTIFY=RIGHT,$
TYPE=REPORT,GRID=OFF,$
END
-EXIT 

This message has been edited. Last edited by: <Kathryn Henning>,


WF 8.2.0.1, MRE, BI Dashboard, Self Service, Dev Studio, MS Windows XP SP1, Apache Tomcat/6.0.20, Oracle 11 g, I.E. 9 Output formats: HTML, Excel 2000 and PDF,Active Reports
 
Posts: 60 | Location: USA | Registered: April 07, 2011Report This Post
Virtuoso
posted Hide Post
Your DESC field is a alpha field, so it will not be included in the subtotal.
Your only chance (as far as I can think of) is to do your subtotals as a subheading and aligning it with the data columns. That way you can include the desired text with your subheading.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
How about this?

SET BYDISPLAY=ON
DEFINE FILE CAR
DESC/A20V= 'DATA';
END

TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
DESC
BY COUNTRY
BY CAR
ON COUNTRY RECOMPUTE * AS 'Total For:'
ON CAR RECOMPUTE * AS 'Total For :'
ON TABLE RECOMPUTE * AS 'TOTAL'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,JUSTIFY=RIGHT,$
TYPE=REPORT,GRID=OFF,$
END
-EXIT 


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
Virtuoso
posted Hide Post
I'd go with GamP's suggestion:
  
DEFINE FILE CAR
DESC/A20= 'DATA';
COUNTRYDESC/A12='COUNTRY';
CARDESC/A12='CAR';
END

TABLE FILE CAR
PRINT
DEALER_COST
RETAIL_COST
DESC 
BY COUNTRY
BY CAR
ON CAR SUBFOOT
"Total<CAR<ST.DEALER_COST<ST.RETAIL_COST CAR"
ON COUNTRY SUBFOOT
"Total<COUNTRY<ST.DEALER_COST<ST.RETAIL_COST COUNTRY"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBTOTAL,JUSTIFY=RIGHT,$
TYPE=REPORT,GRID=ON,$
TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=SUBFOOT, ITEM=3, JUSTIFY=RIGHT, $
TYPE=SUBFOOT, ITEM=4, JUSTIFY=RIGHT, $
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
I like it. But, do these two lines do anything for you?
COUNTRYDESC/A12='COUNTRY';
CARDESC/A12='CAR';
Or, just left-overs?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Hi Danny,
Your solution works for me. Thanks for the help.

Regards,
SAMM


WF 8.2.0.1, MRE, BI Dashboard, Self Service, Dev Studio, MS Windows XP SP1, Apache Tomcat/6.0.20, Oracle 11 g, I.E. 9 Output formats: HTML, Excel 2000 and PDF,Active Reports
 
Posts: 60 | Location: USA | Registered: April 07, 2011Report This Post
Virtuoso
posted Hide Post
Doug,
You are right: left-overs from trying to use SUBTOTAL/RECOMPUTE.
Oh well...

SAMM,
Happy to help.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] New Column desc based on SUBTOTAL value .

Copyright © 1996-2020 Information Builders