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

WD Message Manager

Hi all,

I was wondering if there is a way to use WDMessageManager within the wdDoModify section. I would like to display a notification to the user during this period. When I tried to insert the WDMessageManager I receive an error about calling a non-static reference from a static method. Is it possible to use WDMessageManager from within wdDoModify? If so, how?

Thanks,

Jonathan

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 12:29 PM

    hi

    check out this

    public static void wdDoModifyView(IPrivateDisplayview wdThis, IPrivateDisplayview.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

    {

    //@@begin wdDoModifyView

    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Your text");

    //@@end

    }

    regards,

    Arun

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 12:28 PM

    Hi,

    Use this code

    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Hai");

    Regards,

    Vijayakhanna

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 12:32 PM

    Jonathan,

    You can:

    wdThis.wdGetAPI().getComponent().getMessageManager()

    But, actually, you should avoid this: it's better to use MessageManager from action handler rather then from wdDoModifyView.

    Valery Silaev

    EPAM Systems

    http://www.NetWeaverTeam.com

    Add comment
    10|10000 characters needed characters exceeded