on 09-17-2008 6:44 AM
Can u tell when we write this code IWDMessageManager manager = wdComponentAPI.getMessageManager();
Thanks
raju
when u want to print out some message u use the
following code
this wil print a sucess mesaage
manager.reportSuccess(string);
for an exception
use reportexception(string);
and many more functions are a available as such
u may kind of use it for debugging process too ie kind of similar process to it
suppose
u want to know a value of particular variable in the programme
at run time
store the value in a String type object
and print it in the report sucesss messsage
as simple as that.
refer the following tuts
for the complete idea
A Simple Input Form
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This object is used to print success,warning,exception and contextAttribute messages etc..
for help, write
manager.report <Press ctrl+spacebar here> , you will find more types.
Regards
LN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raju,
You can write this code when you want to access all your stored messages in the Message Editor of your WebDynpro DC.
Thanks,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raju,
IWDMessageManager is used for displaying standard message, Error or warning. you can declare IWDMessageManager manager globally and initialize it in init(). when it requires to print msg you can use --> manager.report<xxxxx>("your message");
Note: xxxxx -- its denoting Exception,Warining or Success
regards,
sukanta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If u want to print static messages u use this method
manager.reportSuccess(String);
if u want to print any exception message u use this method.
catch(WDURLException e)
{
manager.reportException(e.getLocalizedMessage(),false);
}
if u want to pass any argument to the message pool u use this method.
manager.reportMessage(IWDMessage messageitem,Object[] args,boolean cancelNavigation)
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
wdComponentAPI.getMessageManager() is used to show different kind of messages to the end user, these messages includes warning, sucess,exception etc,..
Ex:
wdComponentAPI.getMessageManager().reportSuccess("you data is successfully updated in DB");
wdComponentAPI.getMessageManager().reportWarning("warning message");
wdComponentAPI.getMessageManager().raiseException("please fill the details befor submit",true);
here if you choose true it stops the navigation other wise it proceeds the navigation.
go through the link below for more clarification.
http://help.sap.com/saphelp_nw04s/helpdata/en/ec/1415b06e76584ca6b92fe565206fed/frameset.htm
Regards,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
to print the exceptions or any messages in UI we use IWDMessageManager .
example,
IWDMessageManager manager = wdComponentAPI.getMessageManager();
manager.reportException("<massage here>",false);
manager.reportSuccess(" Success message here");
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.