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.

Featured Replies

Hi,

 

I'm trying to achieve something I expected to be straightforward, but after banging my head on a brick wall for 24 hours it's time to aask for help.

 

I have a fairly straightforward company table and a contact table. Related one to many as you'd expect. When browsing a layout based on the companies table, I can see all the related contacts via a portal.

 

I've never really done any reporting, but I wanted to create a report layout that gives me the company details at the top, and lists the contacts underneath. I expected this to be relatively simple, but I can't get it to work.

 

I have the folowing report layout based on the companies table.

 

Parts:

Header - cust has freetext field as a title and the date

Sub-summary by txt_Surname (Leading) - This contains all the company address details as merge fields

Body - contains the contact details as merge fields (name, job title, email, telephone and so on)

Footer - page number

 

Now I have tried all manner of different combinations to try and get what I want. Basing it on the contacts table, different sorting and so on. When doing test prints it often shows just one contact under a company when I know there are more, and it some cases it shows too many.

 

This is the first time I've tried reporting of any sort in FileMaker, so I'm really stumped by this so any help you can give me would be appreciated...I do keep thinking about a portal for the contacts, but I can see how this would work if the portal isn't big enough to accomodate a company with a hundred contacts in it, where other companies may only have one contact.

 

Any help you can give me will be greatly appreciated.

I've never really done any reporting, but I wanted to create a report layout that gives me the company details at the top, and lists the contacts underneath. I expected this to be relatively simple, but I can't get it to work.

 

I have the folowing report layout based on the companies table.

 

You need to base your report layout on the Contacts table, because that is where each contact is a record that you can use as the body part. Using a list view means that your report is (obviously) as long as it needs to be to display your found set of contacts.

 

In the sub-summary part you can display the related company data.

If it is a One Company to Many Contacts relationship, i would base the report layout on CONTACTS and create a leading Sub-summary by what ever is the reference to the company that a contact belongs to ( this would be the field in contacts that defines/identifies the relation to the particular company, not the merged field ). Then you have to SORT the records by that field. In the Subsumary part on the layout you could put the  txt_Surname or any other field from the related company table (this could be a merged field). In the Body part you should put the data you want to show for contacts (Name, Surname, Phone etc...).

This should give you a list with Company name on the top (in the Sub-summary field) and all the contacts related to that company underneith (in the body part).

  • Author

If it is a One Company to Many Contacts relationship, i would base the report layout on CONTACTS and create a leading Sub-summary by what ever is the reference to the company that a contact belongs to ( this would be the field in contacts that defines/identifies the relation to the particular company, not the merged field ). Then you have to SORT the records by that field. In the Subsumary part on the layout you could put the  txt_Surname or any other field from the related company table (this could be a merged field). In the Body part you should put the data you want to show for contacts (Name, Surname, Phone etc...).

This should give you a list with Company name on the top (in the Sub-summary field) and all the contacts related to that company underneith (in the body part).

 

I was close to this, but I think I see where I might have been going wrong. I wasn't creating the sub-summary part by the fields that defined the relationship, just the surname field. I'll try tweaking it as you've specified above and see if that works.

 

Thanks for your help (and eos).

  • Author

Yup, that worked. Thanks both.

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.