AnsweredAssumed Answered

Perform Script on Server funny behaviour

Question asked by CarlSchwarz on Feb 10, 2014
Latest reply on Feb 11, 2014 by CarlSchwarz

I call a script on the server, and then set a field using get(scriptresult).


Perform script on server(set persistant ID)

set field (table::Persistent ID) ; get(scriptresult)



2 Very weird things are happening.

1) If I take the setfield script step away filemaker hangs waiting for the server to respond.

2) If I leave the setfield scriptstep in the file doesn't hang BUT here is the really weird bit, the contents of that field are cleared when calling this script on the server!! There are no relationships or auto lookups involved.



The only script step in the server script is this:

Exit Script [Result: Get(PersistentID)]


I've tried recovering the file and deleting and recreating the field etc and putting the field in a different table and nothing fixes this! How can the "Exit Script" step above be changing any data in the database??? And why does the filemaker completely freeze up if I take the setfield script step away?