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

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

Recommended Posts

Posted

Hi Everyone.

I have a small relational sub-solution in which I can arrive in one file from either of two others. The initial script from either of the two first files uses a sub scipt in the destination file. If the "If" fails in the destination file and I wish to return to the original layout in either of the first files, is it possible to do so even if I do not know which file I have come from? Layout (original Layout) does not appear to work.

I appreciate that this is a basic question to many - but I'm stuck! blush.gif

Would be grateful for any help.

Posted

Hi Cousin Jack, Uncle Ernie here...

In principle this should not be a problem if the scripts in the two original files have an extra 'bogus' script step after calling the external script in the destination. This 'bogus' sscript step forces Filemaker to return to the original database to continue executing the original script.

So in your two original files the script could be something like:

Perform Script [subscript, External::YourScript]

goto Field []

And the destination file could have a script like:

If [YourCondition = True]

Exit script

End If

Hope this helps,

Ernst.

Posted

I have done this with many database via a Mode variable. I basically have a global field (gMode) which I set to a number based upon where I came from.

I also make sure to create a script called Mode Dictionary, which basically describes what each mode number means.

This topic is 7753 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.