Skip to Content
avatar image
Former Member

how to register a event handler for a selec option

hi experts

I embedded a wd_select_option view in my mainveiw, and now I want to hear the event of on_enter of select option,

so that I am trying to register a event handler firstly, and then handle that event in my component controller.

the code is following

in the WDDOINIT of view

   l_comp_api = wd_comp_controller->wd_get_api( ).
    CALL METHOD lo_cmp_usage->add_event_handler
      EXPORTING
        listener        = l_comp_api
        handler_name    = 'ON_ENTER_M'
        controller_name = 'INTERFACECONTROLLER'
        event_name      = 'ON_ENTER'
        .

and then I added a method called ON_ENTER_M in my component controller, but can not work

can anyone offer my some good practice?

many tkx

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 24, 2011 at 02:38 PM

    Hi,

    Please check this example component WDR_TEST_SELECT_OPTIONS for reference.

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded