on 05-09-2010 11:24 AM
Hi ,
I have created an Image with value 'OBJECT_IMAGE' for the tag in the Drag Source Info.
I have created an ALV and declared it as a drop target by calling the 'create_drop_row_target_info' using the ALV configuration model and passed in the value 'OBJECT_*' for the tag.
Im not able to drag the image onto the ALV and trigger my corresponding event.
I have also declared the event handler in the methods list.
Kindly help. I need to drag this image into the ALV and populate my ALV with data.
Warm regards,
Newton.
hi Newton ,
check out this article , you can get an clear idea .
regards
chinnaiya P
Edited by: chinnaiya pandiyan on May 10, 2010 11:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Chris ,
Im working on Netweaver 7.02.
I have used the following code to enable the drop feature in my ALV.
*----
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv_scarr2( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv_scarr2( ).
DATA lv_value TYPE REF TO cl_salv_wd_config_table.
lv_value = lo_interfacecontroller->get_model(
).
DATA : LIF_DROP_TARGET_INFO TYPE REF TO IF_SALV_WD_DROP_TARGET_INFO.
DATA : LV_STRING TYPE STRING VALUE 'ALV_SCARR2'.
CALL METHOD lv_value->if_salv_wd_drag_and_drop~create_drop_row_target_info
EXPORTING
id = LV_STRING
name = 'IMAGE'
tags = 'OBJECT_*'
enabled = 'X'
receiving
value = LIF_DROP_TARGET_INFO.
*----
Regards,
Newton.
Hi Newton,
I'm afraid you're one enhancement pack ahead of the rest of us mere mortals - to quote a famous theme song "we want ramp-up but our company does not..." - but as you must be part of ramp-up do you not have special support from SAP for issues like this? - I think that's the whole point of ramp-up!
Otherwise - hopefully there are some other people out there - Thomas Jung???? who might have more experience with the 7.02 capabilities.
Sorry I can't help -
Chris
Have a look on this [Document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09cc9d7-5403-2d10-f6a1-8705ea280c4e?quicklink=index&overridelayout=true] by Anand Kotle. In this Doc. he provide the Drag & drop functionality in simple WD ABAP applications.
I don't have any idea on Drag & drop functionality with ALV. If someone have some idea on ALV Drag & drop functionality within WD ABAP. Please share it with Forum.
I created an example drag and drop with ALV in my system that also tries to drag an image onto the ALV. It fails as well and I receive a JavaScript error (oSegmentsVisibleRect is null or not an object) on mouse over to the ALV during the drag. I am running 7.02 SP3 with UR version 7.30.1.10.0.
You will most likely want to open an internal support ticket to report this problem to development.
Hi Newton,
Check the Method BUILD_ALV in this [Wiki|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-UsingUIelementsinALVcomponentcells] . In this method they set the Image in a Alv table column.
Hope it helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.