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.

Dynamic file names

Featured Replies

I'm hoping that this is the right subforum for this, if not I apologize.

We have a simple script designed for saving to a PDF. Essentially, it takes the form, saves it to a PDF. We just use the "Save Records as PDF" script step to accomplish it.

Unfortunately, it forces us to use the same name for the file every time. Is there any way to use a variable or field name as the name of the exported file?

Right now, we have something like: filewin:/C:/Documents and Settings/user/Desktop/NEPSpdfs/nepsrecord.pdf

There HAS to be a way to do this....

FileMaker 8 owners can use the new script variables feature to create dynamic paths for PDFs or any script step that uses the specify path dialog. I have pasted the download URL of an example from my web site demonstrating this technique.

Macintosh download:

http://www.filemakerpros.com/SAVEDYN.sit

Windows download:

http://www.filemakerpros.com/SAVEDYN.zip

Edited by Guest

Try this post out:

http://fmforums.com/forum/showtopic.php?tid/125249/post/125249/#125249

Hi Guse:

Use the Set Variable script step.

Name: $MyVariable

Value: MyPDFname (field or calculated value)

Repitions: 1

Use the Save Records as PDF script step.

Specify output file :$MyVariable

Specify options:current record

The above sample will create individual pdf's of each record in your database with a unique name supplied from the MyPDFname field.

Of course you may want a specific path field as well.

Cheers

Edited by Guest

  • Author

That was perfect, all, thanks a ton.

I had to add in another variable from John Mark Osborne's example, but it worked great.

Thanks again.

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.