September 4, 200322 yr 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! Would be grateful for any help.
September 4, 200322 yr 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.
September 4, 200322 yr 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.
September 6, 200322 yr Author Thanks Kurt. I remain a bit confused as to what you mean though. could you explain a little more? Thanks for your time.
Create an account or sign in to comment