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.

4 tables relationship report problem

Featured Replies

Dear FM Developers,

I do have a problem to build a report to show the ingredients which are necessary for order.

 

The structure of the relationship is as follow

 

[order]

customerID

orderID

 

[orderLines]

orderLineID

orderID (relationship to order)

productID

quantity

 

[products]

productID (relationship to orderLine)

recipeID 

 

[recipes]

recipeID (relationship to product)

 

[recipeLines]

recipeLinesID

recipeID (relationship to recipe)

quantity

materialID (points to productID in TO of products named materials )

 

 

ok real example would be

 

the customer places an order for 

 

#order 1 

-- Green Drink - 2 bottle

-- Red Drink - 1 bottle

 

the green product has an recipe

 

Recipe 1 

-- water 1 qty

-- green dye 1 qty

-- bottle 1 qty

 

the red product has an recipe

 

Recipe 1 

-- water 1 qty

-- red dye 1 qty

-- bottle 1 qty

 

 

I would like to make and report showing

 

# order 1 ingredients necessary:

-- water 2 qty

-- green dye 1 qty

-- red dye 1 qty

-- bottle 2 qty

 

 

The problem is I do not know how to make an report to show the ingredients and summary via the following structure:

 

[order:: orderID] <-> [orderLines:: orderID | productID] <-> [products:: productsID | recipeID] <-> [recipes:: recipeID ] <-> [recipesLines:: recipeID | materialID] 

 

is there any chance to make that kind of aggregation?

 

many thanks for any suggestions.

 

Luca

 

 

 

 

  • Author

Dear comment I have read the conversation about the grandchild field summarization but still has no idea how to implement the solution for printed report (without the portal solution).

 

I had the same problem in access and it was possible to make via the sql command to get the data. I prefer the filemaker as it is more user friendly but cannot get a clue how to make the pass throught.

 

Is it really possible to make the schema order <-> car <-> car specifications <-> car parts report, ie.

 

I order 2 sport cars, I have in the end

 

2 sport cars

list of parts:

 

1. Tires - 8

2. seats - 4

3. mirrors 4

 

etc...

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.