Jump 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.
Juggernaut

Lookup field when related records change

Featured Replies

The situation -

I have 2 tables: Tasks, Dates

Tasks has fields: id, dateNext, zz_1 (zz_1 is a global constant = 1)

Dates has fields: id, id_Task, date, complete

Date is related to Tasks via:
id_Task = id and zz_1 NOT complete

The relationship is sorted by date

So, all Dates that have not been marked as complete will show in a portal the Dates records in the correct order.

 

My question is -

I want dateNext in Tasks to be automatically updated when a record in Dates is changed. In particular, when a record in Dates is marked as 'complete' I want the nextDate in Tasks to update with the next value in the portal.. if no record exists it can keep the current value that is stored.

I tried using a Lookup field for nextDate but that didn't work, and Relookup Field Contents doesn't work because of the NOT complete?

I'd like this automated and not have to check each time if they are in sync.

 

TIA

A stored field will never update merely because a related record was modified.

Why do you need it to be a stored field? You can display the next date quite easily, using either an unstored calculation field or a one-row portal.

 

I also didn't get this part:

1 hour ago, MattyM said:

if no record exists it can keep the current value that is stored.

Where does the "current value that is stored" come from and what does it represent?

  • Author

I need it to be a stored field because this field is used by a calendar and needs to be editable, and in the TASKS table.

Create an account or sign in to comment

Important Information

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

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.