Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Drag and drop function in web dynpro

$
0
0

Hi Experts,

 

I have an ALV table.

 

I want to drag the row from a standard table to the ALV table.

 

I can drag the row but I can't drop the row in ALV table

 

 

The following code is written in method WDDOINIT in the view.

 

Code

Data lo_cmp_usage type ref to if_wd_component_usage.

   lo_cmp_usage =   WD_THIS->wd_cpuse_ALV_TABLE( ).

   if lo_cmp_usage->has_active_component( ) is initial.

     lo_cmp_usage->create_component( ).

   endif.

 

   DATA:

    lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,

    l_value TYPE REF TO cl_salv_wd_config_table,

    lr_table_settings TYPE REF TO if_salv_wd_table_settings,

    lr_input_field type ref to cl_salv_wd_uie_input_field,

    value TYPE REF TO IF_SALV_WD_DROP_TARGET_INFO.

 

 

   DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .

   lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv_table( ).

 

   l_value = lo_interfacecontroller->get_model( ).

 

 

   CALL METHOD l_value->IF_SALV_WD_DRAG_AND_DROP~CREATE_DROP_ROW_TARGET_INFO

     EXPORTING

       id      = 'ALV_TABLE'

       name    = 'from'

       enabled = abap_true

       tags    = 'from'.

 

   l_value->if_salv_wd_drag_and_drop~set_drop_row_name( 'from').

   l_value->IF_SALV_WD_DRAG_AND_DROP~SET_DROP_ROW_NAME_FIELDNAME( 'fight_no').

 

 

 

I have created an event handler method for the drop but the method never gets called

 

(the event handler on click also have same problem) .

 

Pls help whats missing?

 

Thanks


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>