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.

Insert File Script Step

Featured Replies

Hi, I'm trying to save records as a PDF in a specific directory and also insert the PDF into a FileMaker container field.

I've been able to do this successfully, but for some reason the copy stored in FileMaker has a filename of "Invoicessomefilename.pdf" and this is inconvenient for users who try to save the file from the IWP site. Please let me know what I could be doing wrong.

Here are relevant script excerpts:

Set Variable [$PDF; Value:Get(DocumentsPath) & "Invoices" & $FileName & ".pdf"]

Save Records as PDF [Restore; No dialog; "$PDF"; Records being browsed]

Insert File [invoices::Invoice PDF; "$PDF"]

Thanks,

Brien

Try:


Set Variable [$pdf; Value:"file:" & Get (DocumentsPath) & "Invoices/" & "INV" & table::InvoiceID & ".pdf"

Save Records as PDF [Restore; No Dialog; "$pdf" ; Current Record]

Insert File [table::container; "$pdf"]

  • Author

Thanks, that did the trick. I'm developing this for Windows so I thought it would expect the backslash. But I guess FileMaker is smart enough to convert it. Pretty cool.

Don't know if you spotted this one but there were 2 problems:

1. "file:" was missing - this is what FM uses as a "file" protocol.

3. The "/" is translated depending on OS, but it is part of the FM file protocol.

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.