AnsweredAssumed Answered

How to sort portal by related record field?

Question asked by Erik, on Jun 24, 2011
Latest reply on Jun 24, 2011 by Erik,

Title

How to sort portal by related record field?

Post

Hi,

I have 3 tables: 'Part', 'Assembly' and 'AssemblyPart'. AssemblyPart has foreign keys to Part::ID and Assembly::ID, so we can have many assemblies that consist of many parts. On layout Assembly I have a portal to AssemblyParts, one of the fields in the portal is Part::Name from the related table Part. 

How can I sort (by using a script) the portal by Part::Name?

Thanks, Erik

Outcomes