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.

Creating a Report with related tables (Solved)

Featured Replies

I am making a report to show products supplied by a supplier.

When I create the report, I select the different fileds from both the reports table and the suppliers table but when in browse mode, the fields of the relating table are never populated. It is as though the relationships are not working in reports but work elsewhere in portals etc.

what am I doing wrong?

See the attachement for relationships.

filemaker.png

Edited by Guest

"What am I doing wrong?"

That is impossible to tell at this point; we don't know what you're doing.

Please post a copy of your file. A clone, empty of data would be fine. Or a stripped down version or simplified example if you prefer.

  • Author

OK, I have attached the file so far.

Basically want I want to do is create a report that displays each supplier and their respective product names, including the first ProductResource (An image). So at least three tables will be included. I may also include the Category table also.

I will then use this when I go to the suppliers to buy items, I can just show them the report images as I buy them from markets and they don't have product ID's etc.

This will be printed off.

ebayInventory_Clone.zip

  • Author

thanks

Well closer than I got, notice that the supplier name is still not showing. It has an orange circle next to it in the layout view, I think this means that it is not being resolved properly.

I also tried adding the category name but that had the same problem even though we have the foreign key relationships setup.

Edited by Guest

  • Author

Ok, I have figured out what is going wrong but I don't know how to fix it.

From the Products Table, all references to the product id are resolving properly (ProductResources and ProductItems). For the Suppliers and Categories it is not working because they have a foreign key relationship.

So the question is, how do you resolve these types of relationships in FileMaker.

For clarification, if you make a report using Products table.

Products::id = ProductResources::id (resolving properly in a report)

Products::category_id = CAtegory::id (not resolving in a report)

You need to enter the category ID into Products::category_id - not the category name (check your value list).

  • Author

Ahhh yes, good point.

I thought that the text was an alias to the actual number because the field was set to Numeric only to find that this is not enforced.

I changed the list to store the ID and display the name. The problem is that when you select your supplier, the id shows, not the name of the supplier. Is it possible to fix this?

Edited by Guest

You can use a pop-up menu instead of a drop-down list, and set the value list to show only the second field (this requires the second field to contain unique values only). Alternatively, place the related name field over the drop-down, and make it non-enterable.

thanks

Well closer than I got, notice that the supplier name is still not showing. It has an orange circle next to it in the layout view, I think this means that it is not being resolved properly.

I also tried adding the category name but that had the same problem even though we have the foreign key relationships setup.

No, the supplier name very definitely IS showing. Run the script. Look at the details of the layout.

It sounds like you need to learn some very basic things about summary reports. In order for subsummary sort-by parts to show, you must sort by the specified field.

I suggest you complete the tutorial that comes in your FileMaker install folder.

supplier_report.jpg

  • Author

@command and @BruceR

Thanks, it turns out that @command was correct and I was using a text value instead of the id in the value for the field. All is fixed now, cheers, thanks for the help.

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.