Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Exporting to temp .FP5 file from FMS 5

Featured Replies

I have a report-generating script that exports data to a temporary FP5 file and ultimately creates another, uniquely-named FP5 file containing summary records. It works fine in a single-user setting (where FM Server 5 isn't involved) but when I deploy it on the server, the attempt to create the temp file fails. I'm guessing this is because the server prohibits the creation of files, at least under some circumstances.

The location of the temp file doesn't matter to me; as far as the summary file is concerned, ideally it would be put on the client's computer but it could be stored somewhere on the server for the client to retrieve manually.

What approaches have other people taken for server-based databases which need to create temporary files on the server? (incidentally, my clients are all running FMP 6)

Thanks for your consideration,

Chap

Chap:

I would think that the script would still work, and that it would create the temp file on the client's computer - what exactly happens when you fire off the script?

-Stanley

  • Author

Sorry to be so long responding -

When I run the script, at the point where it tries to Export a foundset to TempFile.fp5, I get the following message:

"TempFile.fp5" could not be created on this disk. Use a different name, make more room on the disk, unlock it, or use a different disk.

I assume that by "this disk" it means the server disk, not the client disk.

I'm not real clear about what a script considers to be "local" when it's in a file that's on a server, and is being invoked from a client. I have just assumed it used the CPU and disk of the server machine, and that the invoker's platform is irrelevant. I also assumed that the final report file would be created on the server and the client would have to manually move the report file across the network to her own machine. Certainly, having the finished product automatically end up on her desktop would be preferable!

Any advice or pointers would be greatly appreciated!

Chap

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.