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.
What I do is force an "empty" report using table CAR with a message in my title... That way you create a report, no matter which output (EXL2K, HTML, PDF, ...) but it's just an error message.
In my report I set &TITLE2 to '', but in case my report is empty, I set it to a message. &TITLE 2 is included in my heading all the time.
You check if your last TABLE FILE returns lines and if no, you goto this procedure:
-IF &LINES EQ 0 THEN GOTO FINISH;
...
-FINISH SET EMPTYREPORT = ON -SET &TITLE2 = '*** Sorry there is no data for your selections ***'; TABLE FILE CAR PRINT CAR NOPRINT BY COUNTRY NOPRINT WHERE CAR EQ 'NODATA'; -GOTO STYLE;
STYLE is the style sheet part of code used for both the empty report and real one (HEADING, FOOTING, STYLE, etc...). ex: -STYLE HEADING "&TITLE" "&TITLE2" " " FOOTING "Page "&TITLE&TECHNAME" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT '&WFFMT.(HTML,EXL2K,PDF).Display Output.' ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * ...
-IF &LINES GT 0 GOTO repgen;
-HTMLFORM BEGIN
<html>
<table><tr><td>
no data ...
</td></td></table>
</html>
-HTMLFORM END
-EXIT (or GOTO eoj.thisfex;)
-repgen
..write your report here
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003