on 02-20-2014 11:36 AM
Hello,
I have the following code in the method WDDOINIT:
* add a new field to the selection
wd_this->m_handler->add_selection_field(
i_id = 'TIPO'
i_description = 'Tipo'
it_result = range_table
i_as_dropdown = abap_true
it_value_set = lt_value_set
).
I need to retrieve the event associated with the dropdown to perform different actions depending on the selected value.
An easy way to solve it would use the dropdown tool layout but this involves an additional task.
Does anyone know how to do? It's possible to do what I indicate?
Thanks in advance!!!
Xavi
Hi,
Create an Action ( in Actions tab) and pass that action name to parameter I_HELP_REQUEST_HANDLER of method add_selection_field( )
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rama,
I create the action and pass the parameter as you indicated me, but still not working. I've put a break point in the action and does not stop.
data lr_action type ref to if_wd_action.
lr_action = wd_this->wd_get_api( )->get_action( name = 'SELECCION_TIPO' ).
* add a new field to the selection
wd_this->m_handler->add_selection_field(
i_id = 'TIPO'
i_description = 'Tipo'
i_help_request_handler = lr_action
it_result = range_table
i_as_dropdown = abap_true
it_value_set = lt_value_set
).
What more can I do?
Thanks!!!
Xavi.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.