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

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

Recommended Posts

Posted (edited)

Right now I have 2 tables

1) Company

2) Employees

Im trying to make script that changes the field "active" to "No" in the company record and in the related employees records when someone trys to delete a record in the company table.

I did a script that says

Replace Field Contients [No dialog; RelCompanyEmployees::Active; "No"]

This sounds like it would work great, but its replacing every single active field (even ones that arent related to the company) to "No".

Both tables are related by the companyID

Im I doing somethign wrong???

Edited by Guest
Posted

Replace Field Contents [] works on all records in the found set. Since it seems you are on a layout of Companies, it does the job for all employees of all found Companies.

You could do it this way:

Freeze Window

Go to Related Record ( Employees ; Show related only ]

Replace Field Contents [ Employees::Active ; "No" ]

Go to Layout [ original layout ]

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