August 6, 200421 yr I had a database in FM6, converted now to 7. There's a script in it where, somewhere in the middle another script is called in another database. Problem is that it seems that filemaker doesn't want to return to the original script, but keeps 'hanging' at the last line of the other script.
August 6, 200421 yr If the subscript hits a Halt Script, it will stop the nested script process there. If that's not it, maybe you could post the relevant scripts?
August 9, 200421 yr Author These are the two scripts I'm talking about, Script one: If[isEmpty ( Post-op Evaluation::${Study-ID} )] Copy [select; Study::Study-ID] Set Field [Post-op Evaluation::Study-ID] Perform Script["script 2"from file: "Post-op Evaluation"] End if Go To related Record [lot of text, but it's working] Script 2: New record/Request Go to Layout["Post-op Evaluation"(Post-op Evaluation)] set field [Post-op Evaluation::Timpepoint; 1.5] Paste [select; No style; Post-op Evaluation::Study_ID] Script 2 stops at the last line, concluding in not going back to script one and that filemaker hasn't finished making the record yet (when I perform the scipt again (from file 1) he makes another record in file 2, which I don't want. Only when I make sure the record is made in file 2 (actively press 'something'), and I perform the script from file 1, he goes to the lay-out in file 2 (the script will now not perform the stuff between "If" and "End If"
August 9, 200421 yr Try opening the record, doing the paste, then closing (commiting) the record. Even better, why not get rid of the copy and pastes and use Set Field instead.
Create an account or sign in to comment