Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
no data message
 Login/Join
 
Virtuoso
posted
If I run a report and the result is "nodata" I would like to show a message like "no data found please contact the helpdeks if you need support"
I know how to get that into a procedure, but could this be a default report without changing all my fex?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You can make one Fex...and make it an include in all your Fexes..but you are going to do it to all of them.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
I have a default fex that checks for &RECORDS EQ 0 or &FOCERRNUM NE 0 and redirects each situation to either an empty report message or an error page that displays all input variables. Each one is an HTML page to be displayed in the browser.

Then, at the end of each fex that I want to trap these situations in I add a final line of -INCLUDE errorfex or -INCLUDE app/errorfex for MRE.

My fex actually does more than this but it covers your points.

BTW, if you want an empty report situation to be valid, then you might need to add SET EMPTYREPORT = ON.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5688 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
thanks Tony/Prarie
this was what I had figured out already, but I have to change all my reports to include this fex. I was hoping this could be done on a higher lever, just like running a profile (this would be a default "afterfile")




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
No such luck - unfortunately.

You could get a list of the fexes you want to append and then run a DOS copy to copy the original fex with a file just containing the "-INCLUDE afterfile" (n.b. an anagram of afterlife?).

That would get you closer to your goal.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5688 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You can change the error message text in the following file:

c:\ibi\webfocus71\client71\wfc\etc\enib00e.html

Look for the following text in the file and change the HTML appropriately. It should begin on line 528 in the file.

<ERROR 00042>
<HTML>
<HEAD>
<TITLE>WebFOCUS Message[42]: NO EDA HTML Output</TITLE>
</Head>
<Body>
<HR><H3 ALIGN=center>No HTML Output!</H3><HR>
<H5>
<@--#echo var="html_no_output_msg"-->
</H5>

</Body>
</HTML>
</ERROR>


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Mickey,
That sounds good.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Nice one Mickey, but does it survive the upgrade process? It would be good if it did without having to jump through hoops.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5688 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Tony,

This definitely would not survive the upgrade process. I have a 15 page document containing POST installation configuration settings and internal tweaks like this that need to be made when an upgrade is done so I am use to having to redo this kind of stuff.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Just so you know, I knew about this file because I customized the "Invalid Credentials" message in this file. I use the WF_SIGNON for a self-serv app and needed to give the user a better message. Incidentally, I had to make it generic enough since the messages in this file show for any and all WebFOCUS apps.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
thx for the suggestions and remarks.
I'll give it a try.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.