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.

exporting a csv file using Server 9

Featured Replies

I am trying to get a server compatible script to export a found set to a csv file on my server.

I understand from previous posts that when using Server 9 , the location of the exported file has to be very specific.

This is what I have so far after the initial find has been scripted

Set Variable [$filepath; Value:"filewin:" & Get(DocumentsPath) & "exportfile.csv"]

Export Records [No dialog; "$filepath" ; Windows (ANSI)]

When the Script runs on the server , i get the status "ScriptMaker script aborted"

where am i going wrong.

I also just tried using

Export Records [No dialog; "filewin:/C:/Program Files/Filemaker/Filemaker Server/Data/Documents/exportfile.csv" ; Windows (ANSI)]

but this doesn't work either

any help would be greatly appreciated

Edited by Guest

i get the status "ScriptMaker script aborted"

There may be other reasons for the script to abort - not just bad filepath (which I doubt). Does the script have the correct privileges to export?

  • Author

yes, I believe so.

Can you confirm that export is possible using FM Server 9.

The reason I ask is , my client machine is running FM 10 Advanced and when I am in the script menu and have show compatibility set to 'Server' nothing is greyed out , indicating that everything is fine - but is it assuming I am running FM Server 10 and therefore the Export Records (no dialog) is no problem?

thanks

Aha..

The Server compatibility options only became available with FM10 - which also require FM SERVER 10.

FMS 9 relies upon the previous web compatible steps - but noticeably the EXPORT records step only became server compatible with FM10 - you will need to upgrade to FMS 10

  • Author

ok , thanks.

The way I have solved the problem is to use 360works RemoteScripter to get my Server to trigger my client machine to run a script to save the csv files to the servers hard drive. Then I used 360works FTPeek plugin to run a scheduled script to ftp the files a few minutes later to my webspace.

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.