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

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

Recommended Posts

Posted

Hi there,

I want to create a script that will delete all related data. This is how things look...

It's a college library system, for example, each book has two copies, and each copy has two loans. If I need to delete a book, it will create invalid data in the 'loans' and 'copies' tables. Is there anyway I can create a script that will go through copies and then loans to delete all the data.

This is probably a simple loop answer, but I'm a newbie, so please forgive me ooo.gif.

Posted

AAA's suggestion (sorry don't know your name) is probably the simplest and most reliable and secure. Automatic too.

An alternative is to use the Go to Related Record script step to "find" the related records, then ran a script in the related file that deleted the found set. I'm always very wary about running a script that deletes the found set of records without warning: better be really sure it's the right found set!

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