Skip to Content
author's profile photo Former Member
Former Member

IWDMessageManager manager = wdComponentAPI.getMessageManager();

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

Thanks

raju

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 05:47 AM

    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-e633fe17cb14

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 05:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 06:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 06:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 06:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 05:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 06:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.