Skip to Content

IWDMessageManager clear method not available in NWDS 7.5 .

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 17, 2018 at 11:13 AM

    Hi Viplove,

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



    Add comment
    10|10000 characters needed 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