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     Suppressing row printing in Report Painter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Suppressing row printing in Report Painter
 Login/Join
 
Member
posted
Okay I'm new so be kind... Here's my scenario I have a report that I only want to print a row of data when a condition is met. I have searched high and low for a way to do this - I can apply all sorts of formatting but I really want to suppress the data. Any thoughts appreciated.


WebFOCUS 7.7.0.3
Wintel/Windows SQL Server 2008
Output: PDF, HTML, XLS
 
Posts: 7 | Registered: November 08, 2007Report This Post
Virtuoso
posted Hide Post
quote:
Here's my scenario I have a report that I only want to print a row of data when a condition is met. I have searched high and low for a way to do this


Question, is the other data needed for any reason in the report? If not use WHERE as a screening to obtain only the data you need. Otherwise, you may have to do tricky things with subfoots looking like data or headings.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
I have a series of groups records with counts - if the count exceeds another field in the record I want that row to print. In Crystal there is a "suppress" feature on the group where one can apply a condition - hoping WF had something similiar.


WebFOCUS 7.7.0.3
Wintel/Windows SQL Server 2008
Output: PDF, HTML, XLS
 
Posts: 7 | Registered: November 08, 2007Report This Post
Guru
posted Hide Post
Something like this:

DEFINE FILE CAR
NEWFIELD/I9= IF SEATS GT DOORS THEN SEATS ELSE 0;
END

TABLE FILE CAR
PRINT NEWFIELD
WHERE NEWFIELD GT 0;
END


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Virtuoso
posted Hide Post
The code posted by FRANS will work if you are using the PRINT verb. If you are using the SUM or COUNT verb, use the WHERE TOTAL statement.

Here is an example. I realize I used PRINT in the example but it illustrates the WHERE TOTAL statement.

TABLE FILE CAR
PRINT RCOST DCOST RPM
BY COUNTRY
BY CAR
WHERE TOTAL RPM GT DCOST;
ON TABLE SET STYLE *
TYPE=DATA, BACKCOLOR=LIME, WHEN=RPM GT DCOST,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Don't let the word TOTAL confuse you. The term 'WHERE TOTAL' is a key phrase. It does not total anything. It just indicates that the comparison should be done AFTER the aggregation (TOTALing) of the verb object fields (RCOST DCOST RPM).


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Master
posted Hide Post
Here it is in a COMPUTE maybe a little easier to understand.
TABLE FILE ....
PRINT
...
...
AND COMPUTE COND/A1 = IF ... EQ ... THEN 'Y' ELSE 'N'; NOPRINT
WHERE TOTAL COND EQ 'Y';
END


Replace the ... with your code.

Hope this helps.




Scott

 
Posts: 865 | Registered: May 24, 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     Suppressing row printing in Report Painter

Copyright © 1996-2020 Information Builders