cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with IWDMessageManager

Former Member
0 Kudos

Hi,

I am trying to display error message with IWDMessageManager and the code is

MsgMan.reportContextAttributeMessage(wdContext.nodePerso().currentPersonElement(),personAttr,IMessageExComp.MISSING_INPUT, new object[] , true);

I am getting error at IMessageExComp.MISSING_INPUT i.e; IMessageExComp is unressolved.

i tried ISimpleErrors as well still the same error.

Ay help will be appriciated.

Rashmi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you created a message in your message pool with the key MISSING_INPUT?

Regards,

Murtuza

Former Member
0 Kudos

I had declared

IWDMessageManager ,is this what you call messagepool?

Rashmi

Former Member
0 Kudos

Hi,

In your WD Explorer, expand your project>Web Dynpro Components> Message pool over here you need to have an entry called MISSING_INPUT as key and the message that you want to display at runtime.

Regards,

Murtuza

Former Member
0 Kudos

Thanks Murtuza ,I had not defined the Message Pool ! now it is working fine.

Rashmi.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rashmi,

You can use..

MsgMan.reportMessage(IMessageComponentName.MessageID , new object[] , true)

This should work.

Regards,

Sayan Ghosh