cancel
Showing results for 
Search instead for 
Did you mean: 

IWDMessageManager manager = wdComponentAPI.getMessageManager();

Former Member
0 Kudos

Can u tell when we write this code IWDMessageManager manager = wdComponentAPI.getMessageManager();

Thanks

raju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17...

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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