Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Only show found records in a relation?


This topic is 8346 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have some nicely working relations between, let's say, products and orders. The orders are linked to one of the products, and shown in a portal (in the producst-file). What I would like to do is to be able to filter out a date-range in the orders, sum up the tolal order-value (of the found records) and print thes in a nice layout (in the products file). How do you do this?

- Is it possible to do a search for a date-range in the order-file, then go to products and the portal reflects the search in the orders-file (so that only orders within the date-range are shown)?

thanks!

Posted

One way to do this is with a global field, let's say gSelectedOrders. Make a relationship gSelectedOrders::products-order-id. Now make a list layout in the orders file with ONLY the order id on it, and a separate layout with just gSelectedOrders on it. Make a script that goes to the id list, copies all records, then goes to the gSelectedOrders layout and pastes. This puts all the order id's into the global field, one on each line. Now you just go to related records (show only related) and there you are!

This topic is 8346 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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