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.

Export Field Contents, Looping, Variable Output Script Help

Featured Replies

Happy New Year to you all!

I am writing a script that will export field contents (a picture) of the current found set. The way it is currently written, it will export each picture, but you have to choose your output path and hit "Enter" to export each file and move onto the next one.

First my question is, how can I make these files export to the user's desktop automatically while retaining their original filename? We are sharing the database on FM Server, so I'd like it to be a universal script. Or if worst comes to worse, I can hard code the output path for each person exporting pictures as long as they don't have to hit enter after each export.

Second, is there a way to write some type of calculation field to rename the exported picture automatically to another field's name? I don't see any options to even do this, so I'm not entirely sure it's even possible.

Here is what the script looks like so far in case you want to see it:

Go to Record/Request/Page [First]

Loop

Export Field Contents [Database:image]

Go to Record/Request/Page [Next; End after last]

End Loop

Thanks for the help! Appreciated :)

See if this helps:

http://fmforums.com/forum/showtopic.php?tid/179603/post/218603/#218603

  • Author

BEAUTIFUL! Thank you, comment! Worked like a charm.

Show All Records

Go to Record/Request/Page [ First ]

Loop

Set Variable [ $filePath; Value:"filemac:" & Get ( DesktopPath ) & "/ExportedFolder/" & Table::SerialID & ".jpg" ]

Export Field Contents [ Table::ImageField; “$filePath” ]

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

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.