Drag&Drop files from windows explorer

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Drag&Drop files from windows explorer

Post by dominique »

Hi

We'd like to allow drag&drop files from Windows Explorer to a vl-webpage. Is that possible in vl-web (L14 sp2)?

Regards
Dominique
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique »

Hi

Does somebody has any idea for this Problem?

Is it possible to integrate someting like this in lansa?
https://css-tricks.com/drag-and-drop-file-uploading/

Thanks for ideas
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Drag&Drop files from windows explorer

Post by MarkD »

Yes, it is.

The new VLF version EPC142011 is due for release very soon. It ships with an example generic “Attachments” command handler that supports this type of dragging and dropping - https://docs.lansa.com/14/en/lansa048/i ... sa048_8405

This ships with all source code so you can easily deconstruct its parts for use in non-VLF contexts.
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique »

hi Mark

Sounds good. Thanks!
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Drag&Drop files from windows explorer

Post by MarkD »

dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique »

Hi Mark

I was waiting for epc132030 ...
Do you have an example how to do this? (without lansa Framework)

thanks
Dominique
Pablo
Posts: 48
Joined: Wed Dec 02, 2015 10:35 am

Re: Drag&Drop files from windows explorer

Post by Pablo »

Hi Dominique,

I will write it and post it here later today or tomorrow at the latest.

Regards,
Pablo
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique »

Thanks Pablo

I really appreciate that!

Dominique
Pablo
Posts: 48
Joined: Wed Dec 02, 2015 10:35 am

Re: Drag&Drop files from windows explorer

Post by Pablo »

Hi Dominique,

The attached DropFiles.zip gives you the starting point. It contains a quick export of:

DropMain - web page
DropContainer - reusable part, the container to drop the files
DropWidget - widget handling the drag/drop operation.

Drop a file < 10mb on the container and it's added to the list.
The VLF implementation is very sophisticated, it uses a database file to store/remember the documents by user, etc.
I encourage you to look at the VLF DF_DOC* components.

Hope this helps.
Pablo
Attachments
DropFiles.zip
(21.67 KiB) Downloaded 1491 times
dominique
Posts: 50
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique »

Hi Pablo,

Thanks a lot! That will help us

Dominique
Post Reply