Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7414 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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?

Posted

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"

Posted

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.

This topic is 7414 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.