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: 29
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Drag&Drop files from windows explorer

Post by dominique » Wed Aug 29, 2018 11:32 pm

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: 29
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique » Thu Sep 06, 2018 2:38 pm

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: 528
Joined: Wed Dec 02, 2015 9:56 am

Re: Drag&Drop files from windows explorer

Post by MarkD » Thu Sep 06, 2018 3:34 pm

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: 29
Joined: Mon May 29, 2017 4:16 pm
Location: St. Gallen, Switzerland

Re: Drag&Drop files from windows explorer

Post by dominique » Thu Sep 06, 2018 5:19 pm

hi Mark

Sounds good. Thanks!

MarkD
Posts: 528
Joined: Wed Dec 02, 2015 9:56 am

Re: Drag&Drop files from windows explorer

Post by MarkD » Fri Sep 21, 2018 5:00 pm


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

Re: Drag&Drop files from windows explorer

Post by dominique » Fri Nov 30, 2018 2:01 am

Hi Mark

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

thanks
Dominique

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

Re: Drag&Drop files from windows explorer

Post by Pablo » Fri Nov 30, 2018 2:19 am

Hi Dominique,

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

Regards,
Pablo

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

Re: Drag&Drop files from windows explorer

Post by dominique » Fri Nov 30, 2018 4:38 pm

Thanks Pablo

I really appreciate that!

Dominique

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

Re: Drag&Drop files from windows explorer

Post by Pablo » Sat Dec 01, 2018 1:24 am

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 48 times

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

Re: Drag&Drop files from windows explorer

Post by dominique » Mon Dec 03, 2018 4:22 pm

Hi Pablo,

Thanks a lot! That will help us

Dominique

Post Reply