Jump to content
Server Maintenance This Week. ×

Go to Related Record in FM7


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

Recommended Posts

Searched the forums for this to no avail.

I'm upgrading from 6 to 7. One annoying "feature" in 7 is that the Go to Related Record step no longer displays a found set of 0 if there are no related records. This has completely screwed up several of my scripts that rely on a found set of 0 in order to dertermine if a new related record should be created. In 7, if there are no related records, the script step simply takes you to the related layout and shows whatever found set was there previously. Egads. Any ideas on a workaround?

Thanks.

Link to comment
Share on other sites

If you only need to test whether a related record exists, you can use If [not IsEmpty(rel::key)] (there is at least one related record) or If [isEmpty(rel::key)] (there are no related records). Then only use GTRR if the first one is true and create a new record if it's false (or vice versa with the second).

Link to comment
Share on other sites

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