04-11-2009 1:19 PM
Hello
I've big problem with checkbox fields. When i check the editable checkbox filed on the alv list is triggered "data_changed" and my handle method for this can change value ( set 'X' or space) by "modify_cell" method of "cl_alv_changed_data_protocol". But on the alv list on the screen i have still the same value as i was when i checked(not the value changed by my methods). The other fileds (dates, numbers etc) work correct. What's I've to do to resolve this problem. Any idea???
Best Regards
Szymon Glapiak
04-11-2009 1:41 PM
Hi,
Any data change you make in ITAB or the grid is visible only after you refresh it. After you handle the data changed call for the methodr
refresh_table_display
of the instance to it.
Also since only data is changed, you can additionally pass the
I_SOFT_REFRESH
parameter as 'X' to it to ensure the position is not cursor position is not changed .
Hope this helps.
04-11-2009 4:15 PM
It's not necessary to use method refresh_table if i change data in method for event "data_changed". One of parameters of this method is obcject of class CL ALVCHANGED_DATA_PROTOCOL with one can change cell content and as i say before it works correctly for other field ( numering and char)