what file path are you setting? It sounds like something you should be doing with perform script on server so that it doesn't try to download the exported file to your webdirect user. Filemaker server only supports the temp and documents directories, and also doesn't support all import/export formats.
What I would like to do is export records to the server, continue with some other task, switch to a new layout, and then import the file on the server back into the layout. Then I would like to export the records to the location of the Downloads folder. If I run the script on the server, how do I perform the last step of exporting the records to the local desktop? Isn't everything lost once I exit the script that is running on the server? Thanks.
WebDirect will only export to the browser's downloads folder. You just need to put your file for download into a container field and then script "export field contents" on that container field for the user.
When I script the "Export Field Contents" I get an error message that container fields cannot be exported.
You're probably trying to set the file export location, which is not supported.
uncheck "specify output file" and try again.
Also the script step is NOT supported by mobile browsers.
Thanks Mike. Specify output file is not checked. I did find this though:
FileMaker, Inc. has identified an issue where Export Field Contents fails to export the contents of a container field when all of the following are true:
- FileMaker WebDirect is used.
- Safari web browser is used.
- "Block pop-up windows" is enabled.
FileMaker, Inc. is aware of this issue with the FileMaker products listed
The first 2 are true but the third is not; block pop-up windows is not enabled. Perhaps it won't work if 2 conditions are met?
The first thing I would do is try other browsers, specifically Chrome. Are you using SSL or something else that might cause issues with content being delivered?