Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replace field contents of a related tables fields

Featured Replies

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

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 ]

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.