AnsweredAssumed Answered

Set Next Serial Value Script Step and Error #102

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

Summary

Set Next Serial Value Script Step and Error #102

Product

FileMaker Pro

Version

12.0v4

Operating system version

Mac OS X 10.8.4

Description of the issue

The "Set Next Serial Value" script step never works when the Specify target field option is not defined. A systematic #102 error is generated in this case.

Moreover, even the error capture is disabled, even you are invoking the step directly with a button (without script), the enduser is never receiving any error message.

Steps to reproduce the problem

STEP 1
Define a number field with a serial number auto enter option.
STEP 2
Define a new script or a button that performs the "Set Next Serial Value" script step WITHOUT specifying the target field. However, define correctly the calculated result.
STEP 3
In browse mode, create a new record and activate the concerned number field.
STEP 4
While the concerned field is still activated, perform the new script.

Expected result

If the Specify target field option is not checked, i expect that the script step is applying to the active field during execution, as it works for ALL others Field script steps.

And if it don't, and Error capture is off, i am at least expecting that an error is sended to the enduser.

Actual result

If the Specify target field option is not checked, the step is always generating a #102 Error "Field missing", even the active field is numeric and have a serial number auto enter option defined.

Moreover, even Error capture is off, enduser is not receiving any error message.

Exact text of any error message(s) that appear

none

Configuration information

all

Workaround

You must ALWAYS specify the target field. But thus, you cannot define any GENERIC script and you  must duplicate your script for EACH concerned Field.

Outcomes