Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi everyone. Thanks in advance for your help. I've practically given up at this seemingly simple script.

I'm sharing a database over the FMNetwork using a Mac running OS 10.5 and hosting to other Macs running the same OS.

I'm attempting to write a script that exports a referenced file (a pdf file located on the host computer) from a container field to the "Get(TemporaryPath) directory then immediately open. So far I have:

Set Variable [$TempFilePath; Value: Get (TemporaryPath) & GetAsText (container field]

Export Field Contents [container field; "$TempFilePath"; Automatically open]

When I click on the button that runs this script on the [color:blue]Host computer, it actually removes the referenced file from it's original location and I get a dialogue box that says it cant find the original file. When I click on the same button on a [color:blue]client computer, I get the same dialogue box but

the referenced file remains in its original location.

When I store the file within the database solution (rather than as a reference) it works fine though. Since I'll be sharing hundreds of these PDF files, I'd rather reference them rather than store them within the solution due to file size.

Any suggestions would be greatly appreciated.

Posted

You don't export referenced files, just embedded files.

To share referenced files among multiple workstations, they must be stored on a shared volume, and each user must have the same path to the volume.

Posted

Thank you for your response. That helps to know that now. Once I established the path, how would I go about using that in a script that the clients could use it to open the referenced file? "Export Field" had the option built right in it to open file immediately. I don't see how I could open a referenced PDF file using the "Open File" script step, and If I use the "Open URL" script step, it opens my browser rather than Acrobat.

Why do I have a feeling I'm missing something so obvious here.

Thanks in advance.

Posted

Double-click on the container field or write a script that simply Go to Field (Container).

Posted (edited)

The double click works on the host computer but not for any of the client computers (over FMNET). I've even turned on File Sharing on the host computer. I even mounted the host computer's volume to the client's computer (through File Sharing) just to see if that would work, and nothing. Am I missing a step to direct each client to the reference folder of PDF files on the host?

Thanks again.

Edit --> The error message I'm getting when I double click the container field on a client computer is:

The file "Test.pdf" could not be found and is required to complete this operation"

Edited by Guest
Posted

The path must work for everyone. Try inserting an image from a client. Examine the contents of the container using GetasText (Container). What is the path? How does it differ from the other containers that were inserted from the host?

Posted

When I attach a file (referenced) from a client computer it has a completely different path because it's still stored on the client computer. If I now double click on that field from the host computer, I get the same error message.

Posted

The files cannot be stored on the client computer. They must be on a shared volume. Do you have a fileserver?

Posted

I do have a "file server" but it's more of a workstation that everyone backs their work up to at the end of the day. I guess I need to do more research on how to set up a true file server.

Posted

You could go back to embedding the files in containers. If you separate the table that has the images into its own file, that may help a bit.

This topic is 5629 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.