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     [CLOSED] Arrange the Subtotal Columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Arrange the Subtotal Columns
 Login/Join
 
Member
posted
Hi,
I want to arrange the subtotal of sorted fields.
I need the subtotal of a column to be displayed below that column instead in the starting.
I am using the below code, please suggest how to do this?
-SET &ECHO = ALL;
SET SHOWBLANKS = ON
SET NODATA = '';
SET EMPTYREPORT=ON
SET BYDISPLAY = OFF

TABLE FILE CAR
SUM
DEALER_COST AS 'Dealer Cost'
RETAIL_COST AS 'Retail Cost'
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SUBHEAD
" "
ON TABLE SET PAGE-NUM OFF
ON COUNTRY SUBTOTAL AS 'Total -'
ON CAR SUBTOTAL AS 'Total -'
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=ON,
FONT='VERDANA',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
UNITS=IN,SQUEEZE=ON,ORIENTATION=PORTRAIT,
$
TYPE=TITLE,
FONT='VERDANA',
BACKCOLOR=RGB(190 190 190),
STYLE=-UNDERLINE+BOLD,
JUSTIFY=CENTER,
$
TYPE=TABHEADING,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY = COUNTRY,
FONT='VERDANA',
BACKCOLOR=RGB(200 220 170),
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY = CAR,
FONT='VERDANA',
BACKCOLOR= RGB(110 130 250),
STYLE=BOLD,
$
ENDSTYLE
END
-RUN

Thanks in advance.

This message has been edited. Last edited by: Mayank Agrawal,


7.6.11, Windows
Excel, HTML,PDF
 
Posts: 28 | Registered: April 11, 2011Report This Post
Virtuoso
posted Hide Post
Mayank,

Try this:
  
-SET &ECHO = ALL;
SET SHOWBLANKS = ON
SET NODATA = '';
SET EMPTYREPORT=ON
SET BYDISPLAY = OFF
DEFINE FILE CAR
TCOUNTRY/A16='Total-' | COUNTRY;
TCAR/A24='Total-' | CAR;
END
TABLE FILE CAR
SUM
DEALER_COST AS 'Dealer Cost'
RETAIL_COST AS 'Retail Cost'
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SUBHEAD
" "
ON TABLE SET PAGE-NUM OFF
ON COUNTRY SUBFOOT
"<TCOUNTRY <+0> <ST.DEALER_COST<ST.RETAIL_COST"
ON CAR SUBFOOT
" <TCAR <ST.DEALER_COST<ST.RETAIL_COST"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, JUSTIFY=RIGHT, $
TYPE=SUBFOOT, BY=COUNTRY, LINE=1,ITEM=1, JUSTIFY=LEFT, $
TYPE=SUBFOOT, BY=CAR, LINE=1,ITEM=2, JUSTIFY=LEFT, $
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
Member
posted Hide Post
Thanks Danny ....!!
It is Really very helpful and it is as per my requirement.
Thanks again....!!


7.6.11, Windows
Excel, HTML,PDF
 
Posts: 28 | Registered: April 11, 2011Report This Post
Member
posted Hide Post
Can anyone tell me how to mark my query as Resolved?


7.6.11, Windows
Excel, HTML,PDF
 
Posts: 28 | Registered: April 11, 2011Report This Post
Master
posted Hide Post
Just go back to your original post. At the bottom right you will see a little pencil-eraser icon. Click it and you can edit the post - including changing the first word(s) of the subject line to: [CLOSED]or [RESOLVED] or even [ANNOYED THAT THERE IS NO SOLUTION TO MY PROBLEM BUT I GIVE UP]


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report 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     [CLOSED] Arrange the Subtotal Columns

Copyright © 1996-2020 Information Builders