AnsweredAssumed Answered

Triggering OnRecordCommit before Perform Find does not work is no records are found prior to commit

Question asked by DaveBartczak on Sep 30, 2013
Latest reply on Sep 30, 2013 by Fred(CH)

Summary

Triggering OnRecordCommit before Perform Find does not work is no records are found prior to commit

Product

FileMaker Pro

Version

12.0v4

Operating system version

OS X 10.8.5

Description of the issue

When performing a find on a layout with a OnRecordCommit trigger and there is no record found with the current criteria, the trigger does not fire prior to the find request and limit the possible usefulness.

Steps to reproduce the problem

1. Configure a layout with an OnRecordCommit trigger configured to run exclusively in Find Mode. The actual content of the script is only relevant to showing an output for testing purposes.
2. Enter Find mode.
3. Enter search criteria which will return no record without committing the request.
4. Hit the menu bar button "Perform Find"
5. Error appears stipulating that there is no record matching criteria occurs instead of the script trigger.

Expected result

The trigger should fire prior to the check of found criteria as the trigger could very well modify the find criteria programmatically before performing the find in order to get the expected result set.

Actual result

The error "No records match this find criteria" appears and the trigger only gets fired upon hitting the "cancel" button.

Exact text of any error message(s) that appear

No records match this find criteria

Configuration information

The trigger is configured to fire ONLY in find mode. For testing purposes, the only thing the script does is a "Show Custom Dialog[1]

Workaround

No known workaround

Outcomes