is there any solution to drag files from an container field and drop them in another Windows-Application?
On my Mac I can use MBS, but that's not working in Windows.
Thanks, I used this solution actually. I'm exporting the Container in the User Temp Folder and use the Windows Explorer showing online this file. And now can the user drag and drop the file.
Now I have a portal of Container Fields and my Client wants to drag and drop all of them in one step. So my solution with the Windows Explorer is fine for my client. Exporting all Container Files from one records in a special Temp folder and open windows explorer showing these files.
Thanks to all for helping!
I don't use drag and drop because of its difference in behavior across platforms.
You could do a simple script instead tied to a button for someone to open something in another windows program:
Export Field ContentsSend Event
Export Field Contents
Where the first step exports the container file contents using something like Get(TemporaryPath) and the second script sends an event to tell windows to open that file from disk using an application of choice.
The script approach would also let you control the behavior based on platform, for example using Perform Applescript instead of Send Event for Mac.
Thanks, but this didn‘t work for me.
My client must drag the document from container to another doc management system and drop the file there to archive.
any other solutions?
Does that system have an API? You'll need to provide more details for us to continue to help you.
Copying monkeybreadsoftware on this as he may know how.
On my Mac I can use MBS …
On my mac I can simply drag and drop—no plug in required. Does that not work on Windows? You could also use Export Field Contents with the Automatically Open option selected.
In MBS FileMaker Plugin, we have the FM.AllowFileDragDrop functions to allow file drag to Finder for Mac.
It doesn't work by default in FileMaker, so the plugin needs to modify the data handling there.
Nothing for Windows.
The Drag and Drop functions in MBS FileMaker Plugin are for receiving drops.
Disclaimer for community user agreement:
I may receive some form of compensation, financial or otherwise, from my recommendation or link.
No API. Thanks!
The "Automatically Open"-Function is no option in these case. I must drop the file in an document management system to store the file there.
i know your Plugin:
But I need a solution für Windows. My client is using Window. On my Macs it's no problem.
Any other idea?
Web viewer with file: URL can be drag source on Windows7, but it doesn't work on Windows10...
You can export field contents then automatically open the folder in explorer, but not so good UI...
Take a look at https://autohotkey.com/ We use this free tool to do complex setups and automate configurations on windows. It supports a lot of events as triggers and can generate them. It is a general swiss army knife for a lot of things.
If there is nothing else... Think about a "middleware" without any UI (maybe just a hotkey). You can program a wormhole UI inside of Filemaker (using MBS) that accepts dragged things and then transfers the data to a "worker outside of FMP" that finishes the actual drop.
What we do not know from your question:
Maybe selecting the container field as context in FMP and use a click in context or use pressing a hotkey to transfer the container data into reach for an external tool (e.g. drag & drop is like a floating clipboard that takes and drops over similar ways) and then use Autohotkey as quite easy middleware to receive the event and manage that.
The AutoHotkey technology is manageable by an average programmer even if not familiar with C, Java etc. They have nice docs.
If you want to dive deeper ...
I would suggest you to try Python scripting, as you may also can reuse the code on a Mac. Python code can manage the clipboard platformindependent very nice. Get & Take something from cb, wrangle it using the whole scientific library or even Google Tensorflow AI, an write it back to cb or trigger any event. No need to compile. Interpreted code like in filemaker. Unfortunately the Beeswax bbox plugin with Python Support works only on the mac. BE-Elements Plugin supports Python scripts as far as I know, but is not threadsafe. The Universal Python Plugin by Mikhail Endoshin is still under development.
You can google snippets and modify them. Unfortunately I have currently not the time to collect more examples for you.
Retrieving data ...