1 Reply Latest reply on Apr 22, 2014 12:24 PM by philmodjunk

    Run Script on Server fails



      Run Script on Server fails

      Your post

           I have a simple script that does a find and sort that fails to do anything when I ask it to be run on the Server.  I get no error when checking get(lasterror) just nothing happens.  I tried putting in script steps to fill a global text field after individual steps and nothing....  Attached is a screen shot of the script.  This runs fine on Filemaker Pro.  The steps are all available in the Server. I tell it what layout to use.  Any ideas....


        • 1. Re: Run Script on Server fails

               I would guess that AO Services::x refers to a global field. Values in global fields are specific to the email client and this change of a global field on the server would not appear in x unless your client closed the file and then re-opened it.

               If you are trying to pass a found count back to the client machine, I suggest using:

               Exist Script [ Get ( foundcount) ]

               In this script and then in the script that uses Perform Script on Server, use Get ( ScriptResult ) to access this value.