Hi Experts,
I have an assignment block as shown in the screenshot below.
When i click on ONE CLICK ACTION edit on any row, the last entity is being opened for editing. In this case it is "Quote Revision Number".
I am not able to edit any other specific entity where i have clicked on EDIT. For every edit action clicked , only the last entity in the list is being opened for editing.
Here is the code in the event eh_onedit.
method EH_ONEDIT.
DATA:
lv_index TYPE i,
lr_current TYPE REF TO if_bol_bo_property_access,
popup TYPE REF TO if_bsp_wd_popup.
cl_crm_uiu_erp_order_tools=>switchtoedit( ).
cl_thtmlb_util=>get_event_info(
EXPORTING iv_event = htmlb_event_ex
IMPORTING ev_index = lv_index ).
* set entity as current one
lr_current = me->typed_context->erptext->collection_wrapper->find( iv_index = lv_index ).
CHECK lr_current IS BOUND.
* op_to_edit( ).
popup ?= comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ERP_NOTE/EditWindow' "Interface view name defined in component usage
iv_usage_name = 'CUERP_NOTE' " Usage name defined
iv_title = 'Quote Text' ). "title of popup
popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
popup->set_window_width('550').
popup->set_window_height('450').
popup->open( ).
endmethod.
Please suggest regarding this.