Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7510 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

If you use the insert file script option to actually store the file within FMP in a container field, how do you either open the stored file or copy it out of filemaker? I don't want to store the reference path. I wish to store an actual Word doc. And then I want to either launch the word doc from within filemaker, or be able to copy to the desktop to open it. What am I missing here?

Posted

The easiest way is to create a script

Set Error Capture [On]

Export Field Contents [Your Field]

and run from a button next to the container field storing your documents. Leave the "specify output file" unchecked.

If you make any changes to the file, reimport the newly edited file back into the database to replace original.

You can also export and launch the file by hard coding the export to a known folder, for example ...windowstemptemp.doc

then using "Send Event" script step to launch temp.doc.

If you store several different file types, you'll need to create a conditional script parsing out the file extension and then opening the proper temp file based on this information. Once again, if you make chamges you will need to reimport the newly edited file back into your database.

You can even script the reimport of the edited file with some careful error trapping and a working knowledge of command line functions.

HTH

Posted

Michael

Thanks for your response. That seems like it may work. I guess the one draw would be that two people could be modifing the same document (if save to their local desktop) at the same time. Do you know if there are any other drawbacks (like speed or file size) to storing numerous files within a database?

David

Posted

You could set another field with the person's name who exported the document and then the next person who tries to get it can be told it is being edited by someone else.

As to drawbacks on speed and file size it comes down to your hardware and network speed.

This topic is 7510 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.