cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying WD messages in the respective WD views?

former_member85655
Active Participant
0 Kudos

Hi All,

My WD window contains several WD views . I want to have the messages relevant to that view under that view but remember they are all on the same window. So when I chose the MessageArea UI element and map its enabled to a context variable and at runtime switch them to true or false ,so that at any time only only of them is true it still doesnt work. The messages keep getting displayed in the message area of only one of the views. Changing the context variable to false or true has no effect .Can anyone suggest whats the best way to do this?

Regard,s

Arun

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Arun,

Try with Context Attribute Message method, By this -- even the messages are displayed at only one place, when the user clicks on the message, it acts like a hyper link and points to the corresponding UI element.

Regards

Ramesh.

former_member85655
Active Participant
0 Kudos

Siva,

As I mentioned I have 8 views in the same window and I need all these views. I cant hide the views or make them invisible. For each of these views I defined a MessageArea UI element because otherwise the messages showup by default at the bottom of the page where the user doesnt even see it. But as I mentioned for all these 8 message area UI elements ,if I disable/make invisible the other 7 and keep one of them active it still doesnt work. At runtime the message areas dont see to consider the switch to enable/disable them.

I hope you understood the question now. By default hence it still shows up at the bottom of the page even if i enable/diable the message areas.

Regards,

Arun

former_member85655
Active Participant
0 Kudos

Guys,

that has not effect. It's similar to the setting the enabled/disabled property.It doesnt work. The messages continue to get displayed only in the first message area UI element.

Regards,

Arun

former_member197348
Active Contributor
0 Kudos

Arun,

I don't understand how the message is displayed in first message area UI element when it is not visible? Try two things to make message are UI element invisible if it does not work then try to make view itself invisible. If it does not work just give some more information like view combination and order of display finally where the message is displaying instead of where.

regards,

Siva

former_member201361
Active Contributor
0 Kudos

Hi,

create a Context Attribute of type WDVisibility and bind the Context Attribute to the Visible Property of the message Area Ui Element for the Views .

in the Do init meyhod Initially make the Attribute to NONE

ie

wdContext.currentContextElement.setAttributeName(WDVISIBILITY.INVISIBLE);

based on ur Condition make the Visiblity to Visible(ie to Throw error mesages)

wdContext.currentContextElement.setAttributeName(WDVISIBILITY.VISIBLE);

thanks and regards

Fistae

former_member197348
Active Contributor
0 Kudos

Hi Arun,

Create context attribute of the type WDVisibility in each view.

Bind these attributes to visible property of the respected views. Make the view visible where you want to display the message and make the remaining views invisible.

e.g.

wdContext.currentContextElement().set<attribute _name> (WDVISIBILITY.VISIBLE);
wdContext.currentContextElement().set<attribute _name> (WDVISIBILITY.NONE);

regards,

Siva