Skip to Content
avatar image
Former Member

How do I get MessageManager to behave within modal windows?

Is there a separate message manager used for windows that are embedded within iviews?

I call this method

wdComponentAPI.getMessageManager()

within windows invoked by the following call

IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Blah");

IWDWindow newWin = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);

newWin.open();

I notice that any and all exceptions and messages get reported on the messageManager of the parent view, not the window I want. This is more noticeable in sp6 than sp4 due to the new ui.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 30, 2004 at 07:17 PM

    Have you given a try by specifying a message area in the embedded component window.

    Haven't tried this ..Thinks logical to display the message in the new window..

    Cheers,

    Sam

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Stefan,

      my solution would be to create an interface IWDViewMessageManager (same parameters, plus a method View.getViewMessageManager() ) and maybe declare the IWDMessageManager as obsolete. Now <u>that</u> would keep it simple.

      Greetings, Walter

  • avatar image
    Former Member
    Jul 02, 2004 at 08:20 PM

    Hi Stefan and Sam,

    You guys rock!

    I got this to work correctly by setting the messageArea of the first window to WDVisibility.NONE. All errors now appear in the second window's Message Area.

    I still think the default behaviour is strange in the SAP implementation. I would assume that if the first explicitively created message area ( inside the window view ) would get all the messages, rather than the MessageArea created automatically by SAP.

    Add comment
    10|10000 characters needed characters exceeded