Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editable dropdown listbox on ALV - how to get values

Former Member
0 Likes
462

Hi

I've editable ALV grid with two columns displayed in a popup. First consist of descriptions, second of dropdowns. Each dropdown has different value. My logic is working: dropdowns are filled with proper values. The problem is how to get selected values. When I'm using this code


    CALL METHOD gr_veh_opt_grid->register_edit_event
      EXPORTING:
        i_event_id = cl_gui_alv_grid=>mc_evt_enter.

for setting ENTER as a event when value should be transferred then this is not user-friendly that after selecting dropdown he need to press enter.

When I'm using this:


    CALL METHOD gr_veh_opt_grid->register_edit_event
      EXPORTING:
        i_event_id = cl_gui_alv_grid=>mc_evt_modified.

The problem is in situation when user selects all values end then press OK button with mouse. Then last changed value is not registered by data_changed event.

Can anyone help me how to solve this problem?

Is is possible to force ALV to call data_changed event somehow or read dropdown values not using data_changed event?

Best regards, Tomek

Hi

I've editable ALV grid with two columns displayed in a popup. First consist of descriptions, second of dropdowns. Each dropdown has different value. My logic is working: dropdowns are filled with proper values. The problem is how to get selected values. When I'm using this code


    CALL METHOD gr_veh_opt_grid->register_edit_event
      EXPORTING:
        i_event_id = cl_gui_alv_grid=>mc_evt_enter.

for setting ENTER as a event when value should be transferred then this is not user-friendly that after selecting dropdown he need to press enter.

When I'm using this:


    CALL METHOD gr_veh_opt_grid->register_edit_event
      EXPORTING:
        i_event_id = cl_gui_alv_grid=>mc_evt_modified.

The problem is in situation when user selects all values end then press OK button with mouse. Then last changed value is not registered by data_changed event.

Can anyone help me how to solve this problem?

Is is possible to force ALV to call data_changed event somehow or read dropdown values not using data_changed event?

Best regards, Tomek

1 REPLY 1
Read only

Former Member
0 Likes
356

This question is expired