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

---Caculation in mother table based on one-to-many relationship

Featured Replies

Hi,

I am trying to create service call database as following:

Table1:Service_Call

Field_1:Service_Call_ID

Field_2:Service_Call_Assigned_Enginners

Field_3:Service_Call_Status

Table2:Assign_Task

Field_1:Service_Call_ID

Field_2:Engineer_Name

Field_3:Task_Date

Table3:Service_Visit

Field_1:Service_Call_ID

Field_2:Service_Visit_Status

Field_3:Service_Visit_Date

The Problem is:(in screenshot2)

How can I define the caculation to make Service_Call_Assigned_Enginners="Ben+Ken+Jason"? And Service_Call_Status="In_Progress"? (if there's a "Finished" status in "Children", the status of Service_Call will be "Finished", otherwise it's set to the latest status of the "Child".)

Screenshot 1/2 and sample file are attached.

1_Relationship.jpg

2_Record1.jpg

Service_Call.zip

Edited by Guest

If your Engineer names can be in alphabetical order then you can use a value list.

For the status field you pretty much spelled it out. You need to define a field in Service_Call that = "Finished" and then link this to a new Table Occurrence of ServiceVisit where:

ServiceCall::ID_ServiceCall = ServiceVisit::id_ServiceCall

AND

ServiceCall::StatusFinished = ServiceVisit::Status

Example attached

Service_Call_Revised.zip

Edited by Guest

  • Author

Thanks!

Your solution just open my mind.

Thanks again, I love this forum.

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.