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] How do you get a total to print on one line?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How do you get a total to print on one line?
 Login/Join
 
Gold member
posted
I would like to print a simple column-total on one line. I do not have any sort fields. When I attempt to do this, the phrase 'TOTAL' prints on one line, and the total amounts on the second line. Does anyone know how to eliminate this problem? I am directing my output to PDF.

Here is an example that prints on two lines.

TABLE FILE CAR
PRINT MODEL SALES
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT PDF
END

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 62 | Location: New York City | Registered: December 29, 2004Report This Post
Platinum Member
posted Hide Post
You could do this:

DEFINE FILE CAR
DUMMY/A1 = ' ';
END

TABLE FILE CAR
SUM SALES
BY DUMMY NOPRINT
BY MODEL
ON DUMMY SUBFOOT
" "
"TOTAL <ST.SALES"
ON TABLE SET STYLE *
TYPE=SUBFOOT, LINE=2, STYLE=BOLD, $
TYPE=SUBFOOT, LINE=2, OBJECT=FIELD, ITEM=1, POSITION=SALES, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END

I tried it without the dummy sort field with ON TABLE SUBFOOT, but the styling wouldn't work.

The above does the trick though.

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Platinum Member
posted Hide Post
This works as well if you were looking for a straight dump from the table.

TABLE FILE CAR
PRINT MODEL SALES
BY DUMMY NOPRINT

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Guru
posted Hide Post
At summit there was a great presentation by B.J. Stepien called Why Weird Things Happen in Reporting and it covered the problem you are having.

Summit Presentation
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
Thanks everyone for your help.

I was attempting to do a report with column-totals while not sorting on any field, but I guess if you want to avoid the problem of a two line total, you must either use the SUBFOOT technique, or SORT on at least one of your PRINT columns and use the DUMMY NOPRINT technique.
 
Posts: 62 | Location: New York City | Registered: December 29, 2004Report This Post
Member
posted Hide Post
The solution to this issue can be found at link: https://www.informationbuilder...scriptions-same-line
 
Posts: 14 | Location: West Palm Beach | Registered: March 02, 2005Report 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] How do you get a total to print on one line?

Copyright © 1996-2020 Information Builders