Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Drag & Drop

Former Member
0 Kudos

Hi everybody,

I wrote a program for the purpose of composing E-mails. The screen has two containers. The upper container has fields with search helps for things like signature, header, ETC.

The lower screen is a blank container for writing the contents of the E-mail (I'll call it the text container). Is it possible to drag and drop (using the mouse) the text from one of the fields into the text container?

it seems that the text container allow to drag from it and into it in the classic way, by marking the text, pressing control + left mouse button and then dragging.

On the other hand, my feilds does not show that kind of interactivity. Does anyone have an idea how to make it possible so the user can drag, say, the signature he chose using the search help into the exact place he wants it in the text container?

you can think of it as an alternative to copy-paste.

Any information will help.

Thanks in advance,

Yoni.

4 REPLIES 4

Former Member
0 Kudos

I don´t think, that this is possible. Because only Controls can interact with each other using Drag&Drop, but not so your text control and a "usual dynpro field"...

Former Member
0 Kudos

Hi,

You may use the class CL_DRAGDROP for the drag/drop functionality.

Pls refer to the sample program RSDEMO_DRAG_DROP_EDIT_TREE for refernce.

Pls reward points if good.

Regards,

Renjith Michael.

0 Kudos

Thank you for your answer, Michael.

Can you further explain how it can solve my problem?

Will it make it possible to copy from a field?

Edited by: Mickey Yarden on Jan 31, 2008 3:23 PM

0 Kudos

Hello,

Please refer to the following link on Drag and Drop functionality:

http://help.sap.com/saphelp_erp2004/helpdata/en/6a/87c620c70d11d2bd93080009b4534c/frameset.htm

I think it is a good document and will help you.

Regards,

Renjith Michael.