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.

saving a file through a script and naming from a field.

Featured Replies

Hello

Is it possible to script or calculate the naming of a file?

I would like someone to back up theFilemaker file by a the contents of the text in a field- Or by the date and time. Can this be done by a script or a plug-in?

Thanks

Dave

Edited by Guest

Well, it was news to me, but after reading a post yesterday (topic I can't recall) I learned you can name an export file by using a variable in FM9 (when did this start happening!). That should do it for you.

Regards,

Well i Use a way of saving my orders to a pdf that uses the BillingName and PO Number as its filename.

Set Variable[$pathprefix; Value:"file:" & Get(DesktopPath) & "Invoices"&"/"]

Set Variable[$path; Value:$pathPrefix & OrderForm::BilltoName & " - " &OrderForm::.O.Number & ".pdf"

Save Records as PDF[Restore;No Dialog;"$path";Automatically Open; Current Record]

thats what i currently use but for you i think it might be something like this

Set Variable[$pathprefix; Value:"file:" & Get(DocumentsPath) & "Backup"&"/"]

Set Variable[$path; Value:$pathPrefix & Get (CurrentDate) & ".fp7"]

Export Record [No Dialog; "$path"]

THe above is untested, make sure there is a folder in your My Documents named Backup. It should save it with the currentdate as the name of your file but of course its untested.

  • Author

do you have an example file of this you can post because I can't seem to get it to work.

Thanks

  • Author

Thank you so much. I can understand it now. That was very nice of you to make a working copy for me to work with. You made my day. Thanks

Dave

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.