cancel
Showing results for 
Search instead for 
Did you mean: 

how to display only one message in WD

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

try using messagearea UI element.

By using this all the message will displayed in this area

automatically.

Regards

Surender Dahiya

Answers (2)

Answers (2)

venkatakalyan_karanam
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

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