My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
Go to Article
Advanced Search 

ADVISOR TIPS

Sort FileMaker Pro Portals Multiple Hops Away

It's simple to sort a portal by one of the fields from the table occurrence specified in the definition of the portal. But what if you want to sort by a field several relationships away? Learn how to do it.

By John Mark Osborne, Database Pros president and owner, and FileMaker Advisor technical editor


It's simple to sort a portal by one of the fields from the table occurrence specified in the definition of the portal. But what if you want to sort by a field several relationships away? For example, say you have a many-to-many relationship from an Invoices table to a Products table with a join table called Line Items. You might want to sort a portal displaying records from the Line Items table on a layout showing records from your Invoices table. If you sort the portal by a field in the Line Items table, it's just a simple point and click.

What if you want to sort by a field from the Products table such as the product name. Typically, the product name isn't pipelined into the Line Items table to conserve space and allow for live updates. To display the product name field in the Line Items portal, all you have to do is select the Products table occurrence and select the product name field. Unfortunately, the ability to select a sort field from a table occurrence other than the one attached to the portal isn't supported in the Portal Setup dialog.

To get around this limitation, temporarily change the table occurrence attached to the portal from Line Items to Products. Next, select the product name field from the sort order. Finally, change the table occurrence in the Portal Setup back to the Line Items table occurrence and your sort field remains the same.

Sort Portals Multiple Hops Away

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    John OsborneTechnical editor John Mark Osborne is president and owner of Database Pros, offering FileMaker resources on the Internet. He is author of Scriptology, a speaker at FileMaker Developer Conferences and Macworld conferences, and a trainer for the Professional Training series created by FileMaker, Inc. http://www.databasepros.com jmo@filemakerpros.com

    Printer-friendly
    page layout

    Keyword Tags: FileMaker, FileMaker Development, FileMaker FileMaker Pro

    ADVISORAMA
    Criticize behavior, not people.

    ARTICLE INFO

    FileMaker Advisor

    Web Edition: 2008 Week 21, Doc #19451

    Print Edition: June/July 2008, Page 62

    FREE ACCESS FREE ACCESS

    SUBSCRIPTION STATUS
    You are not signed-in. If you are a subscriber to this publication, sign-in above to access locked articles. To subscribe or renew go to www.AdvisorStore.com.

    Subscribe to FileMaker Advisor Magazine

    Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

    FileMaker.Advisor.com

    Subscribe to Advisor Basics of FileMaker Pro

    Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

    FileMaker.AdvisorBasics.com

    Showcase Your Smarts

    Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

    AdvisorTips.com

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    Hosted by Prominic.NET Website powered by
    LOTUS SOFTWARE
    osboj039-05 posted 05/19/2008 modified 12/01/2008 04:12:48 AM ztfmfd/ztfmfd
    domino-144.advisor.com my.advisor.com 12/03/2008 04:45:59 PM