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     Conditionally suppressing report columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditionally suppressing report columns
 Login/Join
 
Member
posted
I have to produce an excel report that has a variable number of columns. A DB2 stored procedure will return a result set to the .fex with the maximum number of columns, the inapplicable columns having NULL values, and a column indicating how many columns should appear on the report. I can see ways to suppress the actual values within the unwanted columns, although they're null anyway, but can't figure out how to suppress the entire column, titles and all, based on the value indicating the number of applicable columns. Any suggestions would be welcome.
 
Posts: 9 | Location: Boston | Registered: November 10, 2005Report This Post
Gold member
posted Hide Post
Board members helped me suppress columns based off a value passed in my report:

First set a prefix variable to hold a space or a comment string. In my case I was looking at a field that held a group code:
-SET &COL_CMT = IF &parmcd EQ '2' THEN '-*' ELSE '';

Any column in my report that I wanted to eliminate if the code was a value of '2', I placed this prefix (in this case, in front of a unit qty column):
&COL_CMT.EVAL cy_units AS 'CYTD Qty'

In your case, you might check the number in the max column variable and in your SET statement apply the comment code if the column number is greater than this value?

At least this might be a start for you.

Tim J
 
Posts: 57 | Registered: February 24, 2004Report This Post
Member
posted Hide Post
Thanks alot, Tim; that approach works fine.
 
Posts: 9 | Location: Boston | Registered: November 10, 2005Report This Post
Expert
posted Hide Post
interesting approach, tim.
another approach: i use NOPRINT
creating a variable &NPCY_UNITS in the DM section of my fex,
-SET &NPCY_UNITS = IF i want to print THEN ' ' ELSE ' NOPRINT ';
then in the body
SUM...
cy_units AS 'CYTD Qty' &NPCY_UNITS




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Conditionally suppressing report columns

Copyright © 1996-2020 Information Builders