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     Hiding blanks while using dynamically formatted fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Hiding blanks while using dynamically formatted fields
 Login/Join
 
Member
posted
I have a situation where we need to hide rows that are all 0's / null values. However, I also need to dynamically format which output type is used given the type of data being passed back from the stored procedure.

Here's what I used to have when the hiding worked correctly...

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS INFILE
END


TABLE FILE INFILE
&RO

COMPUTE CALCCOUNT/I10C MISSING ON = SPCALCCOUNT; AS ' '

However, two new rows were added that passed back values for CALCCOUNT in the stored procedure. These were floating point fields rather than integer fields which we wanted to display as decimals. So I dynamically formatted the fields as such (however, the calculate no longer worked so I had to remove that)...

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS INFILE
END

DEFINE FILE INFILE
MYFORMAT/A8=DECODE SPCALCTYPE ('% Commit' 'D12.2%' '% Sold' 'D12.2%' ELSE 'I10C');
END

TABLE FILE INFILE
&RO

SPCALCCOUNT/MYFORMAT AS ' '
...

Is there anyway for me to get the calculate with MISSING ON back in so I can hide the nulls while maintaining the dynamic formatting?
 
Posts: 2 | Registered: June 07, 2007Report This Post
Virtuoso
posted Hide Post
Where does &RO originate and what does it contain?

Anyway, if you know the column names, add
COMPUTE TAKE/I1 = (COL1 NE 0) OR (COL2 NE 0) OR ...;

IF TOTAL TAKE NE 0       (or simply: IF TAKE IS TRUE)

to the TABLE request. If all the cols are zero or missing (whether I or P or D format), TAKE is zero and the row is suppressed by the IF; otherwise the row prints.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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     Hiding blanks while using dynamically formatted fields

Copyright © 1996-2020 Information Builders