Keith,
I haven't done any d&d from a listbox to another app. I do, however,
provide a button users can click to copy the selected rows to the
pasteboard which the user can then paste into another program.

The quick and dirty would be to hard code in the specific fields of the
records in the selected set. More elegant would be a method to get the
column pointers and export those fields.

If 4D supports dragging outside itself (like I said I've never tried) I
think you'd still need to get the data you want like this. In which case
instead of a button the trigger would the On begin drag over.


On Mon, Mar 6, 2017 at 11:26 AM, Keith Goebel via 4D_Tech <
[email protected]> wrote:

> Hi all.
> A client has asked:
> I have the list (selection based listbox) showing  the records I'm
> interested in, and I have set the columns to show only those I want and put
> them in the order I want them (all available from the list interface).
> Why can't I select the rows and copy/paste or drag and drop them onto an
> Excel spreadsheet instead of having to go through the export interface?
> (they select the fields and order to export).
>
> Using 4D v15.2 on Win7, I've played briefly with setting a listbox to
> Draggable and tried dragging a selected row to an Excel spreadsheet and
> also to a NotePad++ doc, but nothing happens.
> I don't think drag and drop can be done because if you click a row (to
> drag it) that is already selected with other rows, only that row remains
> selected.
>
> I can't think how to do it using copy/paste.
>
> If we could do this, it would certainly be a big plus for our application
> in the eyes of our users (well, this particular user anyway :-).
>
> Does anyone know if the above idea is possible?
> Cheers, Keith
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************




-- 
Kirk Brooks
San Francisco, CA
=======================
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to