AnsweredAssumed Answered

Empty variable name being set by Perform Find

Question asked by CraftICT on Oct 31, 2014
Latest reply on Nov 13, 2014 by CraftICT

Summary

Empty variable name being set by Perform Find

Product

FileMaker Pro

Version

V13/0v3

Operating system version

Mac OS X 10.9.5 and Windows 8.1

Description of the issue

Couldn't believe my eyes, but It looks as if a very old friend has returned from the dim distant past.

If a variable used in a Perform Find [Restore] script step is empty, then the variable name is set in the find field.

We've replicated this on both Mac and Windows versions

Steps to reproduce the problem

We've shared a simple file that has 2 fields and 2 scripts and populates a $test variable by Get (ActiveFieldContents) at https://www.dropbox.com/s/8pzvly6gjjd2pf3/Find%20Test.fmp12?dl=0

The first script uses Perform Find [Restore] using $test
The second script uses Enter Find Mode, Set Field to $test and Perform Find

If $test is empty using the 1st script $test is entered as the search criteria (and is shown if you do a Modify Last Find)

The second script works as expected

Expected result

This was a problem many versions back but was subsequently fixed

Workaround

The big problem is that we used to write our find requests using the 3 step approach:
Enter Find Mode
Set Field to variable
Perform Find

But because this problem didn't exist on recent versions we've taken advantage of Perform Find [Restore] but now this is breaking some existing systems. We can't afford to go back in time and rewrite all our previous solutions.

Find_Variable.jpg

Outcomes