Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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

  • author's profile photo Former Member
    Former Member
    Posted on 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 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.