Jump 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 server with SetVariable

Featured Replies

Hello all,

I am currently trying to save records with a naming system. I am able to achieve this on my desktop (having already set the $filename variable) using

Set Variable [$fullpath; Value: Get(DesktopPath) & $filename]

however I need to save this file on a remote volume.

In the Set Variable script's Value field, I've tried substituting the Get function for

filemac:/Volume/Folder

But I am told that is not a table and cannot proceed. I have also tried substituting Volume for the Server's IP address and surrounding this part of the function with apostrophies.

I am sure that the answer is shockingly simple, however my scripting/programming knowledge is very limited.

Any help would be greatly appreciated.

I am unsure on a Mac. However, on Windows it would be something like:

"filewin://computerName/folder/filename.xls"

  • Author

thanks LaRetta for your response. I tried that too. My problem is with the exact sintax in the Set Variable function. With apostrophes I can put in any file path I want, however I always get the message "Disk full...". When I try it without apostrophes I am told by FMP that that The specified table cannot be found.

If you have any insight that would great, if not, thank you for your time anyhow, I would not have gotten this far without you.

Can you post your script? Another method is to import a file from your network share as a reference. Then, use GetasText(container) to see the path necessary.

  • Author

OK I finally got it after trying to smash a square peg in a round hole for 2 days I finally stopped trying to use Set Variable for $filepath and directly in the save as .pdf script put in filemac:/Volume/Folder/$filename and voilá!

Wow, I knew it was simple but I am embarassed about how much so it was...

PS. Thank you bcooney, I was thankfully able to avoid the SetVariable problem for the time being. I will keep that Getastext in my mind for the future.

Edited by Guest

It would still be a good idea to learn to write an accurate path variable. That's the foundation for all kinds of file references, import, export, etc. It isn't that hard.

Create an account or sign in to comment

Important Information

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

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.