AnsweredAssumed Answered

GetField returns null

Question asked by philmodjunk on Aug 28, 2013
Latest reply on Aug 14, 2014 by philmodjunk

Summary

GetField returns null

Product

FileMaker Go

Version

12.0.7

Operating system version

iOS 6.1.3

Description of the issue

GetField returns a null value instead of the value of the TableOccurrence::FieldName text named in the parameter.

Steps to reproduce the problem

Create a script that uses GetField in a script step such as Set Variable, Set Field By Name or Show Custom Dialog.
When the script is executed on FileMaker Pro. The quoted text or text expression used as a parameter to produce a tableoccurrence::FieldName results in the value of that named field being returned. Perform the same script in FM Go and a null value is returned.

Expected result

That the value of the named field is returned--as it does in FM Pro.

Actual result

No value is returned and script step fails to execute correctly as a result.

Workaround

Don't use getField to refer to the contents of a field. Create a very large number of scripts--each with direct references to a different field instead of a single script with an indirect reference to a value passed as a script parameter.

Outcomes