Skip to Content
author's profile photo Former Member
Former Member

Problems with Message Pool

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 11:59 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.