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     Displaying user friendly messages

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Displaying user friendly messages
 Login/Join
 
<Sengott>
posted
Hi,

Sometimes when there is no data for the Graph to plot it displays " NO HTML OUTPUT "

But instead of this i want to display a more user friendly message like " for the &movie there is no data"

Kindly provide me a solution

Regards

Sengot

This message has been edited. Last edited by: <Sengott>,
 
Report This Post
Virtuoso
posted Hide Post
If you search on this forum...there are several discussions on this topic. Here one.
https://forums.informationbuilders.com/eve/forums/a/tpc/...661078331#2661078331


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
<Sengott>
posted
thanks
 
Report This Post
Gold member
posted Hide Post
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 *
...

END

I hope it helped you.


Web Focus Studio 5.2.5 on Win2k3
 
Posts: 87 | Location: Montreal, QC, Canada | Registered: September 03, 2004Report This Post
Expert
posted Hide Post
or..
-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, 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     Displaying user friendly messages

Copyright © 1996-2020 Information Builders