Skip to Content
author's profile photo Former Member
Former Member

Drag & Drop

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 08:36 PM

    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"...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.