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.

Export PDF using FieldName

Featured Replies

Is it possible to export to PDF and name the file based on a field name? I have a daily report that I want to save as a PDF with a name "PDF Export For (table::DateField)".

Reid

1. Make a calc field = "PDF Export For" & Get ( CurrentDate )

2. In the 'Save records as PDF' script step.

Under the 'Specify output file' option you can name the file with your calc field and save it to a location of your choosing.

Vincent

  • Author

Reid

1. Make a calc field = "PDF Export For" & Get ( CurrentDate )

2. In the 'Save records as PDF' script step.

Under the 'Specify output file' option you can name the file and save it to a location of your choosing

Vincent

How do I name the file using the calc field I just created? All I see is "Output File Path List" and then pick a filename.

Use a script variable, e.g.:

Set Variable [ $myPath; Value:Get (DesktopPath) & "/" & MyTable::MyField & ".pdf" ]

Save Records as PDF [ File Name: “$myPath”; Records being browsed ]

No calculation field is required.

  • Author

Use a script variable, e.g.:

Set Variable [ $myPath; Value:Get (DesktopPath) & "/" & MyTable::MyField & ".pdf" ]

Save Records as PDF [ File Name: “$myPath”; Records being browsed ]

It says it is an invalid Get Function. This is what I put in for the $myPath variable

Get (filewin:/C:/Folder/Folder/Folder) &"/" & MFSDItems::SavePDFfileTitle &".pdf"

Get (DesktopPath) is a valid function. If you want another location, try:

"filewin:/C:/Folder/Folder/Folder/" & MFSDItems::SavePDFfileTitle & ".pdf" 

  • Author

Get (DesktopPath) is a valid function. If you want another location, try:

"filewin:/C:/Folder/Folder/Folder/" & MFSDItems::SavePDFfileTitle & ".pdf" 

Thanks...this works but now the PDF can't be created because my field MFSDItems::SavePDFfileTitle has a date in it (i.e. 2/17/2011)

I'm trying to create a calculation field that equals my date field with the intention to change the format. Is there a way to change the "/" to "-"?

A calculation like MFSDItems:date FormatChange(**-**-****)

Try the Substitute() function. Or extract the date elements using Year(), Month() and Day() functions - this will enable you to rebuild the format to say yyyy-mm-dd, so that the files can be sorted properly.

Use a script variable, e.g.:

Set Variable [ $myPath; Value:Get (DesktopPath) & "/" & MyTable::MyField & ".pdf" ]

Save Records as PDF [ File Name: “$myPath”; Records being browsed ]

No calculation field is required.

The slash is not required; it is part of get( desktopPath).

Set Variable [ $myPath; Value:Get (DesktopPath) & MyTable::MyField & ".pdf" ]

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.