cancel
Showing results for 
Search instead for 
Did you mean: 

How to focus message area

Former Member
0 Kudos

Hi,

we have requirement in our project, we are using message area on top of the screen, we need to focus(take to ) the message area if there are any error on the screen.

the screen is very long screen , user wants to look at the error rmessage immediately if there any any errors on the screen.

Could you please help me how to highlight the message area?

Thanks & Regards,
Veeru.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

Maybe you can try this in wdDoModifyView

if(! wdComponentAPI.getMessageManager().isEmpty())

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, As i know there is no direct solution for this. Follow this work around,

1. Create an input field with width = 0px and bind an attribute say Va_MessageFocus.

2. In wdDoModifyView( ) method place the below code.

if(!wdComponentAPI.getMessageManager().isEmpty()){               wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), wdContext.getNodeInfo().getAttribute(wdContext.currentContextElement().VA__MESSAGE_FOCUS));
}

Regards,

Vishweshwara P.K.M.

Former Member
0 Kudos

Hi,

My problem is solved partially.It is working when web dynpro view will be accessed directly from Portal.

it is not working when web dynpro view is accessed from BPM UWL task. BPM framework is ignoring the message area that is part of web dynpro view

is there any way to highlight the message area that is part of BPM task?any workaround also appricated

Thanks & Regards,

Veeru