January 11, 2007, 04:35 AM
Tony AI 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
January 11, 2007, 07:05 AM
FrankDutchthanks 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")
January 11, 2007, 07:28 AM
Tony ANo 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
January 11, 2007, 08:35 AM
mgrackinYou 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>
January 11, 2007, 09:24 AM
PrarieMickey,
That sounds good.
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
January 11, 2007, 09:35 AM
Tony ANice 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 | |
January 11, 2007, 09:53 AM
mgrackinTony,
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 |
January 11, 2007, 09:57 AM
mgrackinJust 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 |
January 11, 2007, 05:50 PM
FrankDutchthx 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 |