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] SUBFOOT with count of a column.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] SUBFOOT with count of a column.
 Login/Join
 
Guru
posted
Hi all,

TABLE FILE CAR
HEADING
"All"
PRINT
MODEL
BY COUNTRY
BY CAR
ON COUNTRY SUBFOOT
"Type of Cars = END

I am using above piece of code to generate subfoot every time the value of country changes and it should show the Type of Cars in each country. But, every time it is showing me the value 1.
Please suggest,where i am going wrong.
Thanks in advance.

This message has been edited. Last edited by: Kerry,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
Shankar,

Please put your fex between CODE tags (the right-most icon on the ribbon).


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
Guru
posted Hide Post
Here is the code,
quote:
CODE

TABLE FILE CAR
HEADING
"All"
PRINT
MODEL
BY COUNTRY
BY CAR
ON COUNTRY SUBFOOT
"Type of Cars = <CNT.CAR"
END
  


Thanks.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
TABLE FILE CAR
HEADING
"All"
SUM CNT.CAR NOPRINT
BY COUNTRY
ON COUNTRY SUBFOOT
"Type of Cars = <CNT.CAR"
PRINT
MODEL
BY COUNTRY
BY CAR
END

In order for the SUBFOOT to display the correct COUNT, it must be placed next to the verb that calculates the COUNT.


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
Guru
posted Hide Post
Try this code instead.

DEFINE FILE CAR
CAR_COUNT/I1=1;
END
TABLE FILE CAR
HEADING
"All"
PRINT
MODEL
BY COUNTRY
BY CAR
ON COUNTRY SUBFOOT
"Type of Cars = END


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Guru
posted Hide Post
Sorry it truncated.
DEFINE FILE CAR
CAR_COUNT/I1=1;
END
TABLE FILE CAR
HEADING
"All"
PRINT
MODEL
BY COUNTRY
BY CAR
ON COUNTRY SUBFOOT
"Type of Cars = END


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Guru
posted Hide Post
The last line is
/*
"Type of Cars = /*


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Guru
posted Hide Post
I am trying to print this
"Type of Cars =

WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Guru
posted Hide Post
Danny,
It is showing me the number of rows of CAR column.What I want is distinct number of Cars for a country.I tried "Type of Cars = Is there any way to calculate the distinct no. of cars in subfoot section?

Thanks.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Guru
posted Hide Post
Danny,
It is showing me the number of rows of CAR column.What I want is distinct number of Cars for a country.I tried the below code but it shows error:FOC406) THE FIELDNAME IS NOT RECOGNIZED: DST.CAR

quote:
Code

TABLE FILE CAR
HEADING
"All"
SUM CNT.CAR NOPRINT
BY COUNTRY
ON COUNTRY SUBFOOT
"Type of Cars = <CNT.DST.CAR"
PRINT
MODEL
BY COUNTRY
BY CAR
END  

Is there any way to calculate the distinct no. of cars in subfoot section?

Thanks.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
Shankar,

If you run my fex you get:

  
1 PAGE     1
  
  All
  COUNTRY     CAR               MODEL                                           
  -------     ---               -----                                           
  ENGLAND     JAGUAR            V12XKE AUTO             
                                XJ12L AUTO              
              JENSEN            INTERCEPTOR III         
              TRIUMPH           TR7                     
  Type of Cars =     3
  FRANCE      PEUGEOT           504 4 DOOR              
  Type of Cars =     1
  ITALY       ALFA ROMEO        2000 4 DOOR BERLINA     
                                2000 GT VELOCE          
                                2000 SPIDER VELOCE      
              MASERATI          DORA 2 DOOR             
  Type of Cars =     2
  JAPAN       DATSUN            B210 2 DOOR AUTO        
              TOYOTA            COROLLA 4 DOOR DIX AUTO 
  Type of Cars =     2
  W GERMANY   AUDI              100 LS 2 DOOR AUTO      
              BMW               2002 2 DOOR             
                                2002 2 DOOR AUTO        
                                3.0 SI 4 DOOR           
                                3.0 SI 4 DOOR AUTO      
                                530I 4 DOOR             
                                530I 4 DOOR AUTO        
  Type of Cars =     2



See the number of cars...


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
Guru
posted Hide Post
Thanks Danny.I got the solution.

Regards.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report 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] SUBFOOT with count of a column.

Copyright © 1996-2020 Information Builders