cancel
Showing results for 
Search instead for 
Did you mean: 

Message area

Former Member
0 Kudos

Can we have two message area UI controls in the same view (one at the Top and the other at the bottom section) and ensure that the messages are displayed at both places?

Requirement reason:The View is a very big form which the user has to fill in, and the messages need to displayed at the top and bottom section of the screen so that the user does not have to scroll and can see the messages at both places.

Currently, the message is displayed at the first (top) message area and not the bottom message area.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai,

you can focus the Message Area UI element for those big screens.

view.getElement("MessageArea").requestFocus();

create a context attribute is Focus of type boolean.

like in Exception block

{
wdComponentAPI.getMessageManager.reportException("some Statement",false);
wdContext.currentContextElement.setIsFocus(true);
}

in

wdDOModify(){
if(wdContext.currentContextElement.getIsFocus()){
view.getElement("MessageArea").requestFocus();
wdContext.currentContextElement.setIsFocus(false);
}
}

Like this you can manage Big screens for Messages.

Regards,

Naga

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It is not possible. Looking at the help docs:

<b>If there is more than one suitable IWDMessageArea instance, the first instance created is used.</b>

So only one messagearea can be used.

Regards,

Satyajit.

Former Member
0 Kudos

Hi Sandeep,

Please refer these:

Regards,

Alka.