Skip to Content
avatar image
Former Member

how to display only one message in WD

Hi all,

I want to display successful message or error message when certain action is perform.

I have my message enter in the MessagePool, say Request_Successful_Updated and value is "your request is successfully updated"

In my WD, I do this:

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();

msgMgr.reportSuccess(textAccessor.getText(IMessage<my class>.Request__Successful__Update));

The error message appear three times in the top view, right side view and the bottom of the view.

How to just displayed one error message on just on side of the view?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 04, 2008 at 11:38 AM

    Hi,

    try using messagearea UI element.

    By using this all the message will displayed in this area

    automatically.

    Regards

    Surender Dahiya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2008 at 12:15 PM

    Hi,

    Have you used a viewset to display the three views on the screen??

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 04, 2008 at 01:16 PM

    Hi

    Define a success message or Error message in the pool.

    Use the following statement

    wdComponentAPI.getMessageManager().reportMessage(IMessage<Comp_Name>.<MessageKey>,

    null,false);

    Define message areas View element in your View and place it where you want to display the error message.

    May be this helps you.

    Regards

    Kalyan

    Add comment
    10|10000 characters needed characters exceeded