cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in displaying message

Former Member
0 Kudos

Hi

We want to display error messages at the bottom of the screen.The messages are not being displayed in the bottom of the screen. They are displayed immediately after the transparent container. We have tried using a message area and position it to the bottom. but we still face the problem.

Any suggestions?

jamila

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Jamila,

Messages by default displayed right below all content. So may either insert a placeholder (invisible element) to shift messages. Also you may use MessageArea UI pattern to place messages at any position.

Currently it is impossible to display messages at the very bottom of screen (you cannot calculate this position). This functionality was available in SP4 or SP5 but then discontinued.

VS

Former Member
0 Kudos

Thanks for your replies. The issue is that we are having model windows as popups. When messages are displayed they go to the main window. Since we cannot move the window at runtime the messages get hidden behind the popup :(.

Is there any other way to do this.

jamila

Former Member
0 Kudos

Hi

Well you can do the following. This is one way where you can avoid display of message problems :).

Dont worry about displaying messages at the bottom. You can display the messages of the respective popups in the same window.

Follow the steps

Define explicit message areas on each of the views.

Well before that the thing you will have to do is create a boolean context attribute in the view context and have the read-only property of that attribute to true.

Then bind this attribute to the enabled property of the explicit message areas defined in the views. When you want to display messages in the Left view enable the message area at runtime.

When you want to display messages in the Table View enable that message area and disable the remaining message areas. Do this as per your requirement.

This is the only way you can do it. We are doing it for multiple popups and it works.The maximum popups we have in our scenario is upto 3 levels. So i guess for any level of popups we should be able to display the messages in that respective window in this way.

let me know if that helps you.

regards

ravi

Former Member
0 Kudos

Hi,

You can always use a image (for warning ,erros icons..)..plus a text view.. in the view.. which is popped..

Set its visibility to true when u wnat the rror to be displayed.. set the text view with the correspoding error message..

Tsis is another way ..:) You already have one solution.. from the previous answer..

Regards

Bharathwaj

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi jamila,

Have you created the message UI element .. How many messaged is it capable of displaying..

Creating a message UI element and positioning it should put all the message in theis area..

Is the message area not coming in the bottom of the screen or the error is not displayed in the message area,,

U r using message manager to display error right ..

(Wow.. 4 answers at the same time.. )

Regards

Bharathwaj

Message was edited by: Bharathwaj R

Former Member
0 Kudos

Hi Jamila,

If u want to display msg down give this following code .

For success msg:

wdComponentAPI.getMessageManager.reportSuccess("Successful");

For exceptions:

wdComponentAPI.getMessageManager.raiseException("Exception" +e,true);

Similarly u have all type msg displays.

This should solve ur problem.

Regards,

Nagarajan.

Former Member
0 Kudos

Hi

It is not possible to display the messages at the bottom. When you say at the bottom of the transparent container are you refering to the RootUIElement Container.

Anyways changing the height and width also not allow display of messages at the bottom.

regards

Ravi