I have inherited a database that I've moved from FM 12 to FM 16. When opening a file with sensitive information, there's a script that calls Re-login to authenticate permitted users. When this script runs from FM Server 16, it pauses and then completes without even opening the Dialog box. Using the script debugger, the Re-login call is returning error 1 - User Canceled Action. When I run the database locally, without the server, everything works fine. Any ideas?
Thanks!
Always start with the documentation:
Re-Login - FileMaker Pro 16 Help
Note that the documentation states support for FileMaker Server is "partial", and that points to these comments:
So, based on that, is your script step running with the "with dialog" checkbox off?
If it's not, then that means nobody is there to log in, and you haven't hardcoded any credentials for the server to use in lieu of that automatically, so it fails.
You have two options, either hardcode credentials, or detect that this script is running as a server script and either hardcode credentials or skip it entirely.
That's easy to script: