2007 Aug 27 8:32 PM
Hi,
I have an editable ALV using OO Grid. Some columns are editable and others ones are not using field catalog. I want to validate the data before delete the current row and skip the deletion action if the validation fails. I try to stop the program using an event handler but the handler for the before_user_command event doesn't stop with the function code cl_gui_alv_grid=>mc_fc_loc_delete_row. How can I do to resolve this problem?
Regards,
Lisandro
2007 Aug 27 8:44 PM
Yes, I see you issue, you may want to consider removing these buttons from the toolbar using the exclude parameter of the SET_TABLE_FIRST_DISPLAY method. Then publish your own custom button for delete and then I'm pretty sure that the event before_user_command will be fired when you click this custom button.
Regards,
RIch Heilman
2007 Aug 27 8:44 PM
Yes, I see you issue, you may want to consider removing these buttons from the toolbar using the exclude parameter of the SET_TABLE_FIRST_DISPLAY method. Then publish your own custom button for delete and then I'm pretty sure that the event before_user_command will be fired when you click this custom button.
Regards,
RIch Heilman