on 02-16-2009 10:41 AM
Hi,
We have a requirement to show customized error page when there is a exception in web dynpro program.
We want to catch web dynpro framework exceptions(Eg: JCO) and show the customized error page.
Has anybody implemented this or any suggestions?
Thanks & Regards,
Vijith
Hi Santosh,
Thanks.
There is no issue with the way I am using WDPortal navigation, have tested this thoroughly.
The problem is that whenever I get a exception from web dynpro framework I am unable to catch it and navigate to the custom built error page using WDPortalNavigation.
Thanks & Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you catch the exception, can't you test if it is a custom or a framework exception?
E.g.
try {
} cartch (Exception e) {
if (e instanceof WDUMException.class) {
navigate to standard page
}
if (e instanceof WDResourceNotFoundExceptionclass) {
navigate standard page
}
etc. for JCO and other WD exceptions
}
Good luck, Roelof
Hi Vijith,
U can put ur code in try and catch block and catch the exception and display ur custom message from message pool.
in message pool editor , u can declare the exception with customized message .
u can use these message, when some exception occurs.
Thanks and regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijith,
I have tried this scenario once. Just put all the code of the wdDoInit() in component controller (i.e. the data about model definition and binding to Context) in a try/catch block.
In the catch block, you can write your code like
wdComponentAPI.getMessageManager().reportException();
Regards,
Siva
Hi,
Whats the issue you are facing with WDPortalNavigation.navigateAbsolute().This should work
Try with the syntax provided in the url below and post the error if any
http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/content.htm
Regards,
Santhosh
Edited by: Santhosh Edla on Feb 16, 2009 4:22 PM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.