OnWindowTransaction

Performs a script and creates a JSON object after a transaction is successfully committed. The JSON object includes the file name, base table name, record ID, operation, and contents of that base table's field named "onWindowTransaction" (or a specified field) for every operation within the completed transaction.

Actions that cause a transaction to be committed include:

When the script runs 

After the event has been processed.

Modes in which the trigger can be used 

Browse and Find modes.

Result 

You can use the Exit Script script step within the triggered script to return True or False.

  • True: The event that triggered the script proceeds.
  • False: The event that triggered the script is canceled.

Compatibility 

Product Supported

FileMaker Pro

Yes

FileMaker Go

Yes

FileMaker WebDirect

Yes

FileMaker Server

Yes

FileMaker Cloud

Yes

FileMaker Data API

Yes

Custom Web Publishing

Yes

Originated in version 

20.1

Notes 

  • The Field Name option allows you to specify a field on a table where the script is called. If the field exists, the field content will be included in the JSON script parameter. If the field is not specified, the default field name is "onWindowTransaction".