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?
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.
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.
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")
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.
You can change the error message text in the following file:
Look for the following text in the file and change the HTML appropriately. It should begin on line 528 in the file.
<TITLE>WebFOCUS Message: NO EDA HTML Output</TITLE>
<HR><H3 ALIGN=center>No HTML Output!</H3><HR>
<H5> <@--#echo var="html_no_output_msg"--> </H5>
That sounds good.
Nice one Mickey, but does it survive the upgrade process? It would be good if it did without having to jump through hoops.
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.
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.
thx for the suggestions and remarks.
I'll give it a try.
|Powered by Social Strata|