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 to conditionally suppress column title?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to conditionally suppress column title?
 Login/Join
 
Member
posted
I have a situation similar to that in the following sample procedure. I have a calculated field '%total'. It does not always have data for all ACROSS values. For instance, it has no data for the "CONVERTIBLE" and "HARDTOP" in the output of the sample procedure. I want to hide the display of the column title "%total" in those cases. Can it be done?

TABLE FILE CAR
SUM
SALES AS 'Total'
BY LOWEST COUNTRY

SUM
SALES
COMPUTE %total/D3%S = SALES*100/C1; AS ' %total'
BY LOWEST COUNTRY
ACROSS BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END

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


WebFOCUS 7.7.3
Windows, All Outputs
 
Posts: 28 | Registered: January 19, 2012Report This Post
Expert
posted Hide Post
Please add the code used in "endeflt" which needs to be an parameter to a -INCLUDE (not INCLUDE).

Also, please place all code within the code brackets as seen in the rightmost icons above. < / >




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Coulmn header is made before all of the data is known.
That means that you can't decide to not print the column title depending on some criterium that is not yet clear.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thanks for the explanation.


WebFOCUS 7.7.3
Windows, All Outputs
 
Posts: 28 | Registered: January 19, 2012Report This Post
Expert
posted Hide Post
Doug, that is the correct syntax for including a stylesheet that's a .STY file type.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
quote:
ON TABLE PCHOLD FORMAT HTML


If its only HTML, then you could use javascript to manipulate the report in the browser.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
HIDENULLACRS ??

The HIDENULLACRS parameter hides the display of ACROSS groups containing only null columns.

The syntax is:

SET HIDENULLACRS = {ON|OFF}
where:

ON
Hides columns with missing data in ACROSS groups within a BY-generated page break.

OFF
Does not hide columns. OFF is the default value.


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
Virtuoso
posted Hide Post
Nice suggestion George!

But to make it work, it appears that all of the fields in the across group (both SALESX and %total, in this case) must have MISSING turned on:

SET HIDENULLACRS = ON
SET NODATA = ''
-*
DEFINE FILE CAR
 SALESX/D8 MISSING ON = IF (SALES EQ 0) THEN MISSING ELSE SALES ;
END
-*
TABLE FILE CAR
 SUM SALES AS 'Total'
 BY LOWEST COUNTRY

 SUM SALESX AS 'Sales'
 COMPUTE %total/D3%S MISSING ON = SALESX*100/C1; AS ' %total'
 BY LOWEST COUNTRY
 ACROSS BODYTYPE
 ON TABLE SET PAGE-NUM NOLEAD 
 ON TABLE NOTOTAL
 ON TABLE SET HTMLCSS ON
 ON TABLE SET STYLE *
  INCLUDE = endeflt, $
 ENDSTYLE
 ON TABLE PCHOLD FORMAT HTML
END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 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] How to conditionally suppress column title?

Copyright © 1996-2020 Information Builders