cancel
Showing results for 
Search instead for 
Did you mean: 

Reading message from IWDMessageArea at runtime in CE7.1

Former Member
0 Kudos

Hi,

In NWDS 7.1 at runtime how can we read the message present in the message area ?

We would like to know, if atleast a message is present in the message area.

Your suggestions will highly useful.

With Regards,

Ramesh G.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try this :

wdComponentAPI.getMessageManager().isEmpty();

This will return True if message area is empty.

Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

In wdDoModifyView I am not able access the wdComponentAPI.getMessageManager(). Please suggest me how can I use this?

I tried like this but no use.

IWDMessageManager msgmgr = (IWDMessageManager)view.getElement("ma_messagearea");

msfmgr.isEmpty();

getting below error dump on the screen:

java.lang.ClassCastException: class com.sap.tc.webdynpro.clientserver.uielib.pattern.impl.MessageArea:service:tcwdwebdynprocom.sap.engine.boot.loader.ResourceMultiParentClassLoader1304f57falive incompatible with interface com.sap.tc.webdynpro.progmodel.api.IWDMessageManager:service:tcwdwebdynprocom.sap.engine.boot.loader.ResourceMultiParentClassLoader1304f57falive

Please suggest me.

With Regards,

Ramesh G.

Former Member
0 Kudos

Try calling a method from inside wdModify and write the code there.

Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

Thanks alot. This issue got resolved.

With Regards,

Ramesh G.

Answers (0)