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

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

Recommended Posts

  • Newbies
Posted

Has anyone noticed that when you constrain a found set in FMPro7 and the result is 0, for some reason you are still left with the same found set that you started with?

Also, has anyone had trouble in FMPro7 using the Get(LastError) scripts?

I can't seem to correctly execute in FMPro7 the same scripts that worked fine in FMPro6.

Thanks in advance.

Posted

Yes, that is the new, intentional behavior of FileMaker 7. It makes a lot of sense to not destroy the user's found set but you do have to trap for errors.

Posted

I'm having the same problem with scripted constrain found set, and it doesn't make sense to me that that is FM Pro 7's new intentional behavior. Scripts are intentional! One uses a given step for a reason, and to have inaccurate results is frustrating.

So, that said, do you have an error trapping suggestion?

Thanks if you can!

Posted

The "go to related records" script-step is also tweaked. Set it to "show record using layout BLAH" and "show in new window". If executed where a record has no related records, it neither switches layout nor opens a new window. The only "error trap" I can see is to check if the layout is still the same. Bummer!

Posted

You can test whether related records exist before performing the step.

If [isEmpty(relationship::serial)]

Show Custom Dialog ["No related records exist..."]

Else

Go to Related Record [relationship]

End If

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