Skip to Content
0
Dec 15, 2009 at 04:02 PM

Select-Option Fields and report_attribute_t100_message( )

106 Views

Hi,

I've built a web dynpro with an embedded select-options view using component WDR_SELECT_OPTIONS.

One of those select options is a parameter, added using method add_parameter_field( ).

The parameters are properly displayed in the browser and I wanted to validate the user input and give an error message.

Currently I'm using that coding:

    
    l_element       TYPE REF TO if_wd_context_element,
    l_node_sel_opt  TYPE REF TO if_wd_context_node
    .
  l_node_sel_opt = wd_context->get_child_node(
   name = wd_this->wdctx_select_options
   ).
  l_element = l_node_sel_opt->get_element( )
[..]
wd_comp_controller->g_message_controller->report_attribute_t100_message(
        msg                       = l_symsg
        element                   = l_element
        attribute_name            = 'CHECKBOX_PERSKAUF' 

This coding works fine, the message is available on top of the page, however, I cannot navigate to the appropriate element. I guess I cannot do this with the coding I'm currently using because there is no relation between the select-options fields and the context element/attribute. Am I correct?

If yes, is this possible at all - build my own select-options and let the user navigate to the validated field via a error message click?