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     subtotal invisible field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
subtotal invisible field
 Login/Join
 
Silver Member
posted
I have the following code:

TABLE FILE EMPLOYEES

SUM
     CNT.TERRITORY_ID AS 'COUNT,TERRITORY_ID'
BY FullName AS 'FULL,NAME'
BY HOMEPHONE AS 'HOME,PHONE'
BY TERRITORYDESCRIPTION

ON FullName SUBTOTAL
     TERRITORY_ID AS 'TOTAL TERRITORIES FOR  '
ON FullName SKIP-LINE
ON TABLE SUBFOOT
"<TABPAGENO "
ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
ENDSTYLE
END


By doing this I'm able to see the Total of the Territories for each employee. However I want to make the field territory invisible. When I do this, my subtotal is then blank also. How can I get the SUBTOTAL on each fullname but not show the list of count on the page.

This message has been edited. Last edited by: Kerry,
 
Posts: 45 | Registered: March 18, 2005Report This Post
Silver Member
posted Hide Post
not sure why my question is truncated.

How can I make this
"FULL NAME" "HOME PHONE" "COUNT TERRITORY_ID" "TERRITORY DESCRIPTION"

Buchanan, Steven (71) 555-4848 7 Providence
Morristown
Edison
New York
New York
Mellvile
Fairport
TOTAL TERRITORIES FOR Buchanan, Steven 7

Show the total of 7 even if I make the "COUNT TERRITORY_ID" invisible?
 
Posts: 45 | Registered: March 18, 2005Report This Post
Virtuoso
posted Hide Post
Try using a SUBFOOT instead of the SUBTOTAL. Use the ST. prefix in the SUBFOOT to get a SUBTOTAL for the hidden field.

TABLE FILE CAR
PRINT MODEL AS ''
COMPUTE CNTMODEL/D9=1; NOPRINT
BY COUNTRY NOPRINT
ON COUNTRY SUBHEAD
"<COUNTRY"
ON COUNTRY SUBFOOT
"Total Models for <COUNTRY : <ST.CNTMODEL"
ON TABLE SET STYLE *
TYPE=SUBHEAD, STYLE=BOLD, COLOR=RED,$
TYPE=SUBFOOT, STYLE=BOLD, COLOR=NAVY,$
TYPE=DATA, STYLE=BOLD, COLOR=BLACK,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Have you tried a subfoot with the the count of the territories placed in a computed field which is invisible as well I'm assuming you want to have NOPRINT on so the count is not in a column. The subfoot would contain:
"TOTAL TERRITORIES FOR

Anyway, as mgrackin says as we were on, me and code tags aren't working.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Silver Member
posted Hide Post
When I use this code:
TABLE FILE EMPLOYEES
PRINT
     TERRITORYDESCRIPTION AS 'TERRITORY,DESCRIPTION'
     COMPUTE CNTTERRITORY/D9 = 1;
BY FullName AS 'FULL,NAME'
BY HOMEPHONE AS 'HOME,PHONE'
HEADING
"<TABPAGENO "
ON FullName SUBTOTAL CNTTERRITORY
FOOTING
"Total Territories for <EMPLOYEEID "
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
ENDSTYLE
END


I get subtotals. If I do a NOPRINT on the compute then I don't get the totals. I tried switching to SUBFOOT like you suggested using this code:
TABLE FILE EMPLOYEES
PRINT
     TERRITORYDESCRIPTION AS 'TERRITORY,DESCRIPTION'
     COMPUTE CNTTERRITORY/D9 = 1;
BY FullName AS 'FULL,NAME'
BY HOMEPHONE AS 'HOME,PHONE'
HEADING
"<TABPAGENO "
ON FullName SUBFOOT CNTTERRITORY
FOOTING
"Total Territories for <EMPLOYEEID "
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
ENDSTYLE
END


Not even making the Compute invisible, I get this error
0 ERROR AT OR NEAR LINE 31 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 32 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 33 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC002) A WORD IS NOT RECOGNIZED: "Total Territories for BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

This message has been edited. Last edited by: Kerry,
 
Posts: 45 | Registered: March 18, 2005Report This Post
Silver Member
posted Hide Post
I seem to keep having problems posting. Here’s what I’m trying to do with the subfoot like you suggested:

PRINT
     TERRITORYDESCRIPTION AS 'TERRITORY,DESCRIPTION'
     COMPUTE CNTTERRITORY/D9 = 1;NOPRINT
BY FullName AS 'FULL,NAME'
BY HOMEPHONE AS 'HOME,PHONE'
HEADING
"<TABPAGENO "
ON FullName SUBFOOT CNTTERRITORY
FOOTING
"Total Territories for <EMPLOYEEID "
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
ENDSTYLE
END


I get this error:
0 ERROR AT OR NEAR LINE 31 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 32 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC096) WARNING. NO TEXT SUPPLIED BELOW SUBHEAD OR SUBFOOT
0 ERROR AT OR NEAR LINE 33 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC002) A WORD IS NOT RECOGNIZED: "Total Territories for BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

This message has been edited. Last edited by: Kerry,
 
Posts: 45 | Registered: March 18, 2005Report This Post
Expert
posted Hide Post
Ginny,

When you post code, include it between [ code] and [ /code] tags (no spaces). You can go back and edit your posts by clicking on the middle icon (between the "quote post" and "report post" icons).

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     subtotal invisible field

Copyright © 1996-2020 Information Builders