Skip to Content
Former Member
Jan 24, 2011 at 01:53 PM

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
        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