![]() #FILEMAKER SERVER SIDE SCRIPTS WINDOWS#You may need to explicitly commit data in all windows if you want that data to be available to the script. Uncommitted data on the client side is not available within the server-side script. While the server-side script is running, Get( ApplicationVersion ) will return something like “Server 13.0v1″ and Get(ScreenWidth) and Get(ScreenHeight) will return 640 and 480, respectively. Your script can check Get( LastError ) and handle the error by doing a regular Perform Script to perform the script on the client or perhaps display an appropriate error message if the script can’t be run on the client. ![]() #FILEMAKER SERVER SIDE SCRIPTS PRO#The file is opened locally by FileMaker Pro 13, FileMaker Go 13, or a runtime application.The script that is calling Perform Script on Server is running as a scheduled script.The host is FileMaker Server 12, FileMaker Pro 12, or FileMaker Pro 13.The client is FileMaker Go 12 or FileMaker Pro 12.There are several situations where the script step itself will fail, including: You should always check for an error after Perform Script on Server. You may be able to build logic into your script to reestablish these. This means that things like the found set, current record, sort order, variables, and global field values will not automatically be the same. The server-side script will NOT have the same context as the client. The OnFirstWindowOpen and OnFirstWindowClose script triggers will fire on the server each time a script is called using Perform Script on Server. Since the client’s account is used by the server-side script, the values returned by functions such as Get( AccountName ), Get( AccountPrivilegeSetName ), and Get( AccountExtendedPrivileges ) will be identical on both the client and the server-side scripts called by that client. This is a major benefit for systems that have relied on scheduled scripts for server-side processing since scheduled scripts require the credentials to be entered at the time the schedule is created. The server-side script will respect all of the privilege settings for the account. SecurityįileMaker’s security model allows the server-side script to be automatically run with the same account that called the script on the client. Keep in mind that when you do this, Get( ScriptResult ) will not contain a value. The option is enabled by default, but you can uncheck the option to cause the client-side script to immediately continue after telling the server to perform a script. The Perform Script on Server script step has a handy “Wait for completion” option that is perfect for this scenario. Sometimes a system has a feature that needs to be initiated by a user, but the user doesn’t need to wait for the result. OS X: /Library/FileMaker Server/Database Server/Extensions/.Windows: \Program Files\FileMaker\FileMaker Server\Database Server\Extensions\.In order for plug-ins to be available to the FileMaker Script Engine, you must configure FileMaker Server to enable support for plug-ins and enable each plug-in after installing in the following location: Perform SQL statements (including SELECT, INSERT, UPDATE, and DELETE) within your FileMaker database.Process a credit card using the 360Works Plastic plug-in.Scripts that need to perform finds on unindexed dataįileMaker Go can’t directly use plug-ins, but a script called by Perform Script on Server can use plug-ins that are installed on the server.Scripts that aggregate or summarize data.Scripts that create, modify, or delete many records.Some of the kinds of scripts we’ve found to have the highest performance improvement include: However, as the network latency between the client and server increases (Wi-Fi, WAN, 3G/4G) or the performance of the client machine decreases (iPad, iPhone) performing a script on the server can be many, many times faster. ![]() ![]() When the client is FileMaker Pro and it’s on the same fast local network as the server, performing a script on the server instead of on the client will likely have very little performance benefit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |