Dojo DnD acceptance of outside objects - dojo

Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example.

I doubt it, because it will be the browser that will receive the DnD event...
At best you can count on a plugin or extension to handle it, like the excellent DragDropUpload extension does for file upload fields in Firefox.

What kind of file explorer are you talking about? From what I can recall you'd be lucky to get dnd working properly even for table rows, the api is a pain in the #$$.

Related

af:inputfile drag and drop not supported in IE11

For one of our clients we are building a web application with oracle adf.
One of the requested features of this application is having a drag-and-drop file upload.
Fortunately the af:inputfile component supports this feature out of the box.
Unfortunately that feature is not supported in Internet Explorer 11, which we absolutely have to support.
Now I have been trying to get it to work using the dropzone.js library and the drag and drop functionality seems to be working. but I haven't been able to get the POST request to the ADF side of things quite right.
Even if I did it would be a lot of custom code that would have to be maintained, if it's the only way to make it work that is fine but if there is a more elegant solution to this I would like to know.
What you can do is to use ADF JavaScript APIs, more specifically AdfFileUploadManager(https://docs.oracle.com/middleware/1213/adf/api-reference-javascript-faces/oracle/adf/view/js/util/AdfFileUploadManager.html)
You need to instantiate it by giving it the ADF Component reference, which that can be an af:inputFile with display="none"
Then you can utilise your DropZone or any other functionality and use addFileToQueue to send this information to server side and convert it to UploadedFile.

Tracking file changes done by an external apps

Is it possible to get a handle on a file which is opened by any external app via my application?
Using Cloud-Storage Apps as an example, I would like to track changes to a file opened via the Storage-Provider App, so the manipulated file can be uploaded again afterwards.
There are two possible answers here, depending on what kind of app you're implementing.
For general tracking purposes, you can try using the ContentsChanged event of the StoreFolderQueryResult/StorageFileQueryResult classes within Windows.Storage.Search. That is, you create a file or folder query for what you want to watch, and then register an event handler. Generally speaking, this works well for stuff on the local file system; it's not guaranteed if you're trying to run a query on files/folders whose backing store is elsewhere.
The subject is too detailed to be described here, but you can refer the "File and Folder Queries" in Chapter 11 of my free ebook Programming Windows Store Apps with HTML, CSS, and JavaScript, Second Edition, page 607. Even though I focus on JS as a language, the discussions of WinRT APIs like this are useful when working in any language...plus the ebook is free so there's nothing to lose.
The other mechanism would be useful if you're implementing an app that provides the interface to a cloud storage backend, like the OneDrive app that's part of Windows. In this case you'd want to use the CachedFileUpdater contract. See Appendix D, page 1288, of my aforementioned book.

Upload Progress in Wicket for MultiFileUploadField

Wickets UploadProgressBar does only work for 'FileUploadField'. This is insufficient for my needs as I need to transfer multiple files which will be added by the User (Just like it can be done with 'MultipleUploadField').
So I'd like to implement an UploadProgressBar which also works for the MultipleUploadField but don't know what would be the best approach to do this. I recognized the classes UploadInfo and UploadStatusResource which might be useful here.
Does anyone have a suggestion what would be the best way to solve this problem?
Have a look at Uploadify at www.uploadify.com, which uses Flash to upload multiple files. You can integrate its Javascript callbacks nicely into Wicket, using Wicket's JS features.
It brings a nice progress bar for each single file upload.
Or you can wait for HTML 5.
Meanwhile you can also check for a better Javscript library for multiple file uploads and again integrate it in Wicket.

Get selected remote file via Remote System Explorer (RSE)'s API?

I'm developing a custom Eclipse plugin that makes use of Remote System Explorer (of the Eclipse TM project) under the hoods.
My question is, how can I grab the currently selected remote file from my own plugin? I suppose there is some convenience method somewhere, but I can't find it (or I found a number of close matches, but couldn't get anything to work).
Sounds like you need to make use of the selection service.
There is an article here that will help.

Obtain control names in Windows application

Haven't found this in my search on Stackoverflow - I know I've seen a tool like it before, for obtaining control names or IDs in Windows apps which can then be used for reference in automated testing, in tools like AutoIt. Can anyone suggest one?
I've tried the OLE/COM Object Viewer and while it has control lists, there's no interactive method with it. Like the web developer toolkit in Firefox where you can click a control and get all the information about it, I'm after a similar app for Windows testing.
It's called Spy++.
Found the tool I wanted, either NUnitForms - which means you can use the NUnit Framework to access windows forms, and includes a Recorder tool for identifying the controls, as well as Managed Spy for giving the individual component names as well as every bit of other info - font, color, size. Very nice.
NUnitForms : http://nunitforms.sourceforge.net/
ManagedSpy: http://msdn.microsoft.com/en-us/magazine/cc163617.aspx