cancel
Showing results for 
Search instead for 
Did you mean: 

Can i report one message and highlight two or more input field ? in WD

Former Member
0 Kudos

Hi All,

I can use " report_attribute_error_message " , this will highlight the field with a red border.

but can i highlight the two fields with a red border at the sametime ?

Can anyone help me ?

Thanks!

Edited by: DDT CHOU on May 6, 2010 10:20 AM

Accepted Solutions (1)

Accepted Solutions (1)

ChrisPaine
Active Contributor
0 Kudos

Hi,

Yes - but only for a single element

use method REPORT_ELEMENT_T100_MESSAGE, or REPORT_ELEMENT_ERROR_MESSAGE or REPORT_ELEMENT_EXCEPTION of the message handler..

data: lo_component type ref to if_wd_component,
      ls_msg type SYMSG,
       lo_message_manager    type ref to if_wd_message_manager.

  lo_component = wd_comp_controller->wd_get_api( ).

  lo_message_manager = lo_component->get_message_manager( ).

* some code to populate element reference and populate table of attributes...
                                                         
   lo_message_manager->report_element_t100_message(
                                             msg                       = ls_msg
                                             element                   = lo_element
                                             attributes                = lt_attribs )

you can pass a table of the attributes you want to relate to the error - but only one element.

Nor can you highlight a dropdown by index with an error message. (At least not in a table).

unfortuantely I don't see a way to do the same thing in the FPM message manger. Fingers crossed for NW7.02...

Hope this helpful,

Chris

Answers (1)

Answers (1)

Former Member
0 Kudos

3Q ^^/

" you can pass a table of the attributes you want to relate to the error - but only one element. "

Yes , That is I need ^^/

Thank you very ...very ...very ...very ... much

Edited by: DDT CHOU on May 7, 2010 3:29 AM