on 08-25-2008 6:35 AM
Hi all,
Please let me know the better approaches in handling errors in java webdynpros.
How should I use Context Value Nodes to hold the errors and display them at a later point of time.
Regards,
Somya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi somya,
If at any point in time you receive a not explainable compilation errors, select your Web Dynpro project and select "Reload". This will reload the XML files and re-created the complete coding.
for permission check errors go through :[http://help.sap.com/saphelp_nwce10/helpdata/en/12/8d9840888a2f54e10000000a1550b0/content.htm]
In some situations the child component it is, because of the potential risk of disruption to navigation, the error handling should be done in the root component. :[http://www.addon-software.de/wiki/index.php/Pattern_overview]
Regards,
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Somya
1) Create a global boolean variable
public static final boolean shw_err = true;
2) Inside your code use this Boolean variable to show the error messages accordingly
like
if(shw_err == true)
{
wdComponentAPI.getMessageManager().reportMessage(" Your message");
}
use the above code where ever required and just change the shw_err value, this will be used as Error Message ON/OFF switch. You can pass the error messages into the node and you can display when ever required
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Check the following thread for Message handling in WD
http://help.sap.com/saphelp_nw04s/helpdata/en/d1/1937e802d4ef4597fa14c48e66ca5d/frameset.htm
Also WD provides Message Pool where you can define user error,text and Warning messages and these messages can be shown using IWDMessageManager APis.
Siddharth
Edited by: Siddharth Jain on Aug 25, 2008 7:45 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.