cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Message Pool

Former Member
0 Kudos

Hallo all,

I add 3 error messages in the MessagePool of the WebDynpro Project and want to fire those in coding, but it doesn't work. The coding looks like follows...

<i>IWDMessageManager msgMgr = wdThis.wdGetAccountController().wdGetAPI().getMessageManager();

msgMgr.reportContextAttributeMessage(wdThis.wdGetContext().currentContextElement(),infoName,IMessageAccount.ERROR__NAME,new Object[] ,false);</i>

When I organize the imports, it can't find the interface IMessageAccount (account is the name of the controller).

Can anyone help me, please?

Best regards

Petra Rimkus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Here IMessageAccount is your controller name.

Have you added this controller into the view in which you have written this coding?

If not then go to properties tab of the view and there add your controller- IMEssageAccount in required controller.

I hope it helps you. If it works fine then reward points and close the thread.

Regards,

Bhavik

Former Member
0 Kudos

Hi Bhavik,

no, the controller's name is "Account" and it's added in the properties tab. What I want to do with this coding is to use all the messages of the message pool. If I think right, then I can use the messages of the message pool with the interface IMessage<controller>.

Regards

Petra