cancel
Showing results for 
Search instead for 
Did you mean: 

Highlight an UI element without the error message

Former Member
0 Kudos

Hi

Is there any way to highlight the element without showing any message?

All the messages of the message manager interface have an obligatory message parameter.

Thanks

Pushpraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

One way to do this is use of textview instead of label for your input field.

Bind the semantic color property to an attribute, Set it to Negative or Marked2 to highlight it likewise.

Thanks

Bhanu

Former Member
0 Kudos

Hi Bhanu

The elements are dynamically generated with lables so changing it is not an option.

Thanks

Pushpraj

former_member199125
Active Contributor
0 Kudos

On condition base you have to change the UI element properties, apart from that i dont see any option

Answers (2)

Answers (2)

former_member182372
Active Contributor
0 Kudos

In WDJ it could be solved by using WebWidget UI element. Set the context attribute which is bound to WebWidget's scriptOnLoad property to

document.getElementById('IIMM.<VIEW_NAME>.<UI_ELEMENT_NAME>').className = 'urEdf2TxtEnbl urEdf2TxtInv';

Former Member
0 Kudos

Hi Pushpraj,

You want to highlight or to set the focus to the particular element. If it is to set the focus, then

  DATA lo_view TYPE REF TO if_wd_view_controller.
*--Pass the reference of the view 
  lo_view = wd_this->wd_get_api( ).
lo_view->request_focus( context_element = Context element reference
                                          attribute = Attribute to be focused ) 

Thanks & Regards,

Raghuram K.R.