Skip to Content

IWDMessageManager clear method not available in NWDS 7.5 .

Jan 16 at 02:22 PM


avatar image

Hi Experts,

Below are the piece of code which is correctly working in NWDS 7.0 but .clear() method is not avaiable in in NWDS 7.5.

NWDS 7.0
messageManager = (IWDMessageManager) wdComponentAPI.getMessageManager();
messageManager.clear();// This will clear message in message manager.

NWDS 7.5

In NWDS 7.5 messageManager.clear() is not available.

Could you please help us in letting us know the alternative solution to perform actions.

As a result of this issue message manager is not getting cleared and duplicated messages are populating on the screen .

Thanks in advance for your help.
Best Regards,

Viplove Kumar Diwan.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

MADHU N G Jan 17 at 11:13 AM

Hi Viplove,

How about messageManager.removeMessage(<IWDMessage message>) . Did you try this.



Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Madhu,

.removeMessage() will clear the message only passed to it .

In our case we need to clear all messages in messageManager in one go.

Any Other option to clear all messages generated using Messagemanager in one go will be highly helpful .

As per API below :

This will remove the given message from the message managers permanent messages and from the message display if currently displayed

message to be removed
true, if message existed

Best Regards,
Viplove Diwan