Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3365 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

HELP    How can I Export using a $variable as my File Name

I am a new User with Filemaker 12 on a PC.   I need to export to a file and have the field "Report Id" be the file name I Exported.

 

Sample " Field Report Id = "Mik01122015"   I need to export mt data to "Mik01122015.txt"

 

How can I Export using a $variable as my File Name  "$variable= Field "Report#" Export to "Report#123.txt"

 

I am using this script

 

Export.JPG

Posted

Make sure you prepend the file name with "filewin:/". Ie; "filewin:/C:/Test/report.txt"

Also make sure you swap all backslashes for forward slashes.

Posted

Also you need to include the whole path, filename and extension in the variable.  In the Export Records script step you can not use a calculation like

$Filename.fmpur

it has to be just

$Filename

This topic is 3365 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.