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

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

Recommended Posts

  • Newbies
Posted

I have a secondary table that associates, among other things, a name with an ID, and a main table.

Users:

  • ID
  • Name

MainTable:

  • UserID

And the obvious relationship: MainTable::UserID = Users::ID. It's a many-to-one mapping, with many MainTable records matching one User record.

I'd like to make a nice layout with subsummaries, but I ran across a problem that just seems too basic to be anything other than a mistake on my part.

If I'm in a layout that's viewing MainTable, I can sort by MainTable::UserID. Subsummary layouts work fine.

If I try to sort by Users::Name, I get nothing. Well, actually, MainTable gets "unsorted" - exactly as if I pressed the button.

Here are some things that I've tried:

  • Sort by Users::Name, then MainTable::UserID. This sorts exactly as if I'm sorting by MainTable::UserID.
  • Create a calculation field "UserName" in MainTable that's
    "a" & Users::Name
    (The concatenation was just in case FileMaker might take a shortcut if I just mirrored Users::Name.) The field displays properly, but sorting by it produces exactly the same result as sorting by Users::Name.

Any help is appreciated.

Posted

Can you post a small sample showing this? There shouldn't be a problem getting the child table to sort by a related field from parent. Of course, sub-summary parts must be defined to break by the same field, too - but that doesn't affect sorting as such.

  • Newbies
Posted

I'm trying to sort MainTable by a related field from related table - Users. Not sure precisely what you meant by "parent" and "child".

When you say "post an example", do you mean an example DB with this problem?

Posted

In a one-to-many relationship, one is the parent and many the child. A bit easier to visualize than Users and Main (one User has many "Mains"??).

do you mean an example DB with this problem?

Yes.

  • Newbies
Posted

Here's the sample - Sort Problem.

I pared this down from the actual problem DB.

I created another DB from scratch, and it does not have this problem - Sort Not-A-Problem.

I can't really tell that there's any difference between the two - other than this problem.

Thanks for the help!

Sprt_Problem.zip

This topic is 5785 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.