[CLOSED] Show alert message for user if webfocus server is down and database is down
Hello,
Some times webfocus server may be down or database may be down at that time i need to pass the alert message to java,that "webfocus server is down so unable to generate report" + If database is down so unable to generate report".can any one help with code
ThanksThis message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 7.7.03 Windows 7, Excel,HTML,PDF
September 12, 2014, 07:46 AM
Rifaz
Maddy1,
Just to heads up, i think &RETCODE may do the trick, if your DB is down. But, about RS, need to look, is there any environment variable get set once server is running.
-Rifaz
WebFOCUS 7.7.x and 8.x
September 12, 2014, 08:34 AM
Shakila Subhan
Maddy1,
-IF (&RETCODE LE 1) AND (&FOCERRNUM EQ 0) THEN GOTO SKIP_EXIT; -TYPE *** RETCODE = &RETCODE -TYPE *** FOCERRNUM = &FOCERRNUM -TYPE *** FORCED TERMINATION! -EXIT -RUN -SKIP_EXIT
WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5 Windows, All Outputs
September 13, 2014, 03:18 AM
Maddy1
Thank you very Much Rifaz and Shakila,i will try this code and let you know if it works
WebFOCUS 7.7.03 Windows 7, Excel,HTML,PDF
September 13, 2014, 11:28 AM
George Patton
Maybe I'm missing something, but if the WF server is down how is this ever going to run?
quote:
Originally posted by Shakila Subhan: Maddy1,
-IF (&RETCODE LE 1) AND (&FOCERRNUM EQ 0) THEN GOTO SKIP_EXIT; -TYPE *** RETCODE = &RETCODE -TYPE *** FOCERRNUM = &FOCERRNUM -TYPE *** FORCED TERMINATION! -EXIT -RUN -SKIP_EXIT
Can you help out what the return codes usually cause ate webfocus server down and database down
WebFOCUS 7.7.03 Windows 7, Excel,HTML,PDF
September 17, 2014, 04:58 AM
Ian Dalton
You can replace the reference to the bid login with your own as per below. We have a small piece of html generated by Dev Studio that simply says "WebFOCUS down ....try later"