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.
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
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, 2004
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
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, 2003
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, 2003