It seems that FileMaker's Insert Calculated Result script step does not respect the user's System Formats, even if Use System Formats is turned on.
That is, this script would loop ad infinitum without error because the date fields were expecting dates in the system format but the Insert Calculated Result would force the date to mm/dd/yyyy or somesuch thing.
My workaround for this was to create a custom function: ObjectSource ( object ) = GetLayoutObjectAttribute ( object ; "source" ).
I replaced all Insert Calculated Result steps in this script with Set Field by Name, where the target field is ObjectSource ( {objectname} ) and the result is the same as the calculation in the Insert Calculated Result step.
For example, I replaced:
- Code: Select all
Go to Object [Object Name: "SourceDateStart"]
Insert Calculated Result [ select ; $sc_DateRangeStartDate & "..." & $sc_DateRangeEndDate ]
with
- Code: Select all
Set Field by Name [ObjectSource ("SourceDateStart"); $sc_DateRangeStartDate & "..." & $sc_DateRangeEndDate ]
I did a search for this issue on the forums and from the looks of it I'm the only one who's come across this issue. Or perhaps I've overlooked something somewhere else. In any case, I hope this helps someone in my situation.
For what it's worth, I'm running FileMaker 11 Advanced on OS X 10.5.
Peter