on 09-16-2010 7:42 AM
HI all,
Can anyone tell me the syntax to print a simple message in webdynpro java.
Regards.
subrat
hi
// for a success message
wdComponentAPI.getMessageManager().reportSuccess("success message");
// for a warning message
wdComponentAPI.getMessageManager().reportWarning("warning message");
// for an error message
wdComponentAPI.getMessageManager().reportException("message ", true); // second parameter is cancel navigation
// plus you can add the messages in message pool and call them from there using
wdComponentAPI.getMessageManager().reportMessage(IMessageTest134app.ERROR, new Object[0], true);
thanks
Sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use the below code:
wdComponentAPI.getMessageManager().reportSuccess("Your Text");
Also refer to the link: [Messages|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14?quicklink=index&overridelayout=true]
Hope it helps.
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.