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