cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the location of message report by WDMessageManager?

Former Member
0 Kudos

Hi guys,

If I report some message by this way:

IWDMessageManager manager = wdComponentAPI.getMessageManager();

manager.reportSuccess("some text");

The message will show in the bottom of the iview. My question is how to show the message in the top of the iview.

Thank you very much!

Regards,

Xiaoming Yang

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Xiaoming,

This will depend on your application.

If you have only one view in your application you can have a message area in the view at the location in which you want to display the message.

However if you have multiple views in your application and you navigate to different views then the above option will not work. This is becuase messages will only be displayed in the message area(ofcourse inside some view) thats loaded first in the memory.

So now you will have two options

1) Define a viewset having two areas(top and bottom, 2 row 1 columns). In the top area have a view that only contains a message area UI element. In the bottom area, embed all the views that you will be navigating to in your application.

2) Create the message area dynamically on the view thats being displayed at a particular time. Read my earlier replies on this topic.

If any problem in understanding, do let me know and I will help you.

Thanks & Regards,

Shubham

Former Member
0 Kudos

Thank you, Rathna and Shubham. I've solved my problem. Points to you guys.

Regards,

Xiaoming Yang

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

U can use the UI element "MessageArea" for displaying the messages.

Hope this helps.

Regards,

Rathna.