vct Posted August 11, 2004 Posted August 11, 2004 In my old FMP 5.5 files. I used the "go to related records" script step and the Current found count function to trigger a message when no related record is found. The message appears if the current found count =0 after the "go to related records" step. I converted the files to Version 7. It seems that if no related record is found, the found set in the related file will not change. the found set would be the same as if the "go to related records" script step didn't run. The found cout would not change to 0 accordingly; therefore, I could not trigger the message. I think I can re-write my scripts, use find script to achive the same result. If you know that it's still possible to use the "go to related records" script step in this case, could you please let me know how? I hope I can salvage my old scripts. Thanks in advance.
-Queue- Posted August 12, 2004 Posted August 12, 2004 Make it easier on yourself and test for related records before going to them. If [isEmpty(relationship::serial)] Show Custom Dialog ["There are no related records."] Else Go to Related Records End If
vct Posted August 12, 2004 Author Posted August 12, 2004 Thanks Queue! This is a lot more easier than what I did before.
Recommended Posts
This topic is 7411 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 accountSign in
Already have an account? Sign in here.
Sign In Now