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.

Can save as PDF with field as filename?

Featured Replies

How can I set up a script to save as pdf with a field date as the pdf filename?

here's an example from a modified FM template. Click the view purchase order button in the upper right corner. The date had to be reformatted without the slashes, since those are path separators.

Purchase_Orders.fp7.zip

  • 2 months later...

I don't know how reed did it (at work and can't download)

but i found a nifty way to do it in fmp8

in my script, i set a variable $filename to database::invoice field & ".pdf" so the entire filename was one variable

and then i did save pdf as...

and i put in the directory of where to save, ie:

c:whatever$filename

Thats all i had to do, the fun part was inserting that file as an obect embedded into the database : but i figured that out a few minutes later

  • 4 weeks later...

apologies for my lack of understanding scripting nomenclature but can anyone post an exact verbatim scripting procedure for this? I'd like to have my pdf's saved too, not with a field date, but rather with my invoice id number on my main layout. Scripting where it saves to would be nice not necesarily.

-brian

Edited by Guest

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.