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.

Featured Replies

I am trying to write a script that saves a report as a PDF..."Save Records As PDF(Restore; No Dialogue; $wip report; Records being browsed )"

I am using a variable ($wip report ) in the "specify output file" as seen above. When I execute the script I get a message that the file "$wip report" cannot be create on this disk blah blah bla.

It looks to me that the "Save Records As PDF" is trying to save the file with the variable name and not its contents. Is this the way it is supposed to work?

Edited by Guest

  • Author

I set $wip report = "File:/N:/FileMaker/WIPnAR Reports/Reports/WIP" & Mbillaty::tkinit & ".pdf"

using the set variable function.

Mbillaty::tkinit = "01070" so the result is "File:/N:/BileMaker/WIPnAR Reports/Reports/WIP01070.pdf" By the way if I paste the contents of the set variable into the save records as function it works fine.

Edited by Guest

  • Author

I just found out that it works if the variable is global that is $$wip. The script that creates the pdf is a subscript to the script that assigns the filepath. I did not believe this was necessary if it all ran at one time.

From the FM Help regarding variables:

A local variable can only be used in script steps in the currently executing script. The value in a local variable is cleared when the script exits

Here is something other threads that you may want to check out as well.

Local vs. Global

Scope of Global Variables

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.