• Shopping Cart Shopping Cart
    0Shopping Cart
Databuzz
  • Home
  • Services
    • FileMaker Development
    • FileMaker Integration
    • FileMaker Web Publishing
    • FileMaker Go for the iPhone and iPad
    • FileMaker Xero Integration
    • FileMaker WooCommerce Integration Specialists
    • FileMaker Shopify Integration Specialists
    • FileMaker DocuSign Integration Specialists
    • FileMaker MYOB AccountRight Integration
    • FileMaker MYOB Essentials Integration Specialists
  • Products
    • fmSMS
    • fmMMS
    • fmAccounting Link (Xero Edition)
    • fmAccounting Link (QuickBooks Online Edition)
    • fmEcommerce Link (WooCommerce Edition)
    • fmEcommerce Link (Shopify Edition)
    • fmESignature Link (Docusign Edition)
    • fmAccounting Link (MYOB AccountRight Edition)
    • fmAccounting Link (MYOB Essentials Edition)
  • Shop
  • Contact
    • Contact Databuzz
    • Support
    • Submit Testimonial
  • About Us
    • About Databuzz
    • Our Clients
    • Testimonials
    • Support
    • Databuzz Newsletter Signup
    • Terms and Conditions
    • Privacy Policy
  • News
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Blog - Latest News

Getting the IDs for a Filtered Portal

April 24, 2014/12 Comments/in Databuzz, FileMaker Pro 13, General, News/by Andrew Duncan

One of my favourite features of FileMaker Pro v13 is the new “List of” summary type option, which is used for creating a return-delimited list of non-blank values in a field. For example if you wanted a list of all Customer IDs for your found set of records you can now simply reference a Summary field that uses the List of type option:

List of Summary Field Type

 

I’ve found the performance to be excellent and it can now replace the use of Custom Functions, looping scripts etc that were previously used to generate a list of IDs for a found set of records. We’ve also another great use for it – in conjunction with filtered portals it can be used to get the IDs for the currently filtered portal records. This makes it simply to filter a portal, get the list of filtered IDs which can then be used in a multi-key relationship to group those filtered records for further processing.

Portal filtering was introduced in FileMaker Pro 11 and lets developers easily filter a portal by simply editing the portal setup – you don’t need to add unnecessary clutter to your relationship graph to support portal filtering. However one of the limitations with portal filtering is that the results of calculations are based on the full set of related records, not just the records in the portal that are currently filtered. This means that you can’t simply use functions like the List function to return a list of all the Customer IDs that are currently filtered as it will return a list of all Customer IDs for the underlying relationship used by the portal.

However you can now use the new “List of” summary type field with a filtered portal to quickly get the list of filtered record IDs. You simply need to create a Summary field in your “child” table that you are filtering that is a List of the IDs, then create a script that retrieves this value.

Here’s a screenshot showing a simple filtered portal of Customers by State. When you select a State from the pop-up menu the list of customers changes to match the selected State:

 

Filtered Portals Demo

You’ll notice below the portal is another field that displays the list of Customer IDs for the currently filtered portal records. We’ve added a script trigger to the State pop-up menu filter that checks for any filtered records and retrieves the CustomerIDs for the filtered records by retrieving the value of the List of Customer IDs Summary field. The script has to go to the first row of the portal to establish the correct context first – here’s what the script looks like with the step that gets the filtered IDs highlighted:

Get Filtered Customer IDs

 

You can download this demo file to explore this technique – please post any comments below.

Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://www.databuzz.com.au/wp-content/uploads/2014/07/databuzz-logo-small-300x88.png 0 0 Andrew Duncan https://www.databuzz.com.au/wp-content/uploads/2014/07/databuzz-logo-small-300x88.png Andrew Duncan2014-04-24 23:04:172014-04-24 23:11:57Getting the IDs for a Filtered Portal
12 replies
  1. Damien Kelly
    Damien Kelly says:
    August 14, 2014 at 11:46 pm

    Loving this!

  2. Daniel Wood
    Daniel Wood says:
    September 11, 2014 at 7:18 am

    Great article Andrew, thanks for sharing!

    I’ve also done a little experimenting with this function. As a quick way to get the filtered IDs we put the summary field inside the portal and give it an object name, eg “IDs”. We can then grab the IDs using the GetLayoutObjectAttribute function, eg:

    GetLayoutObjectAttribute ( "IDs" ; "Content" )

    This can be used in a calculation field for the purposes of GTRR if need be.

    As far as the field in the portal goes, an interesting ‘feature’ is that you can set its hide condition to 1 so it does not appear, but the GetLayoutObjectAttribute function will still evaluate that object even if its not visible.

  3. Andrew Duncan
    Andrew Duncan says:
    September 11, 2014 at 10:44 am

    Hi Daniel – I like the idea of the hidden summary field on the portal and using GetLayoutObjectAttribute to get the list of IDs! A nice improvement to this technique – thanks for commenting.

  4. Nick Lightbody
    Nick Lightbody says:
    October 9, 2014 at 2:38 am

    Hi Andrew,

    Thanks for the share – really helpful – I hadn’t realised that the List of summary honoured the portal filter – and thanks also to Daniel for his suggestion.

    Cheers, Nick

  5. Nick Lightbody
    Nick Lightbody says:
    October 9, 2014 at 6:27 pm

    and – of course – this also provides a simple method of obtaining the current record count in the filtered portal?

  6. Andrew Duncan
    Andrew Duncan says:
    October 9, 2014 at 9:39 pm

    Hi Nick,

    Yes you could use this with my scripted example:

    ValueCount ( AllCustomers::ListOfCustomerIDs )

    or this with Daniel’s non scripted version:

    ValueCount ( GetLayoutObjectAttribute ( “IDs” ; “Content” ) )

  7. Darrin Southern
    Darrin Southern says:
    February 11, 2015 at 2:19 pm

    excellent . . .

  8. ardi
    ardi says:
    March 2, 2015 at 4:27 pm

    good work

  9. Manuel Banderas
    Manuel Banderas says:
    April 12, 2017 at 2:17 am

    This is awesome! Thank your very very much for sharing! 🤘

  10. Mike
    Mike says:
    September 22, 2017 at 11:32 pm

    I spent 3 hours this morning trying to figure this exact problem out, your solution is amazing. Works great!!

Trackbacks & Pingbacks

  1. Getting the IDs for a Filtered Portal | Databuzz | Filemaker Info says:
    April 29, 2014 at 5:34 am

    […] See on http://www.databuzz.com.au […]

  2. Getting the IDs for a Filtered Portal | Databuzz - FileMakerProGurus says:
    April 28, 2014 at 11:52 pm

    […] via Getting the IDs for a Filtered Portal | Databuzz. […]

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest News

  • Databuzz releases fmESignature Link (Docusign Edition) v2 – Integrate the Claris FileMaker Platform with DocusignJune 9, 2026 - 6:00 am

    Databuzz today announced fmESignature Link (Docusign Edition) v2, a major update to their FileMaker solution that integrates with the Docusign eSignature platform. fmESignature Link (Docusign Edition) is a FileMaker solution that integrates between the Claris FileMaker Platform and Docusign. Docusign is one of the most popular electronic signature platforms and helps organisations connect and automate […]

  • Changes to the Xero Developer PricingMarch 24, 2026 - 8:24 pm

    In December 2025 Xero announced that they were making changes to their pricing and policies for the  Xero Developer Platform, including moving to a new usage-based pricing effective March 2, 2026. New apps created in the Xero Developer portal will default to the free Starter tier and existing apps will be migrated starting mid March, […]

  • Tickets for Reconnect.Christchurch 2026 Now AvailableMarch 16, 2026 - 8:20 am

    The Reconnect Claris FileMaker Developer conference is back again in 2026 and this year we’re heading outside of Australia to Christchurch, New Zealand. The conference will be held in the Christchurch Town Hall, located on the banks of the Avon River in central Christchurch on 15-16 October, 2026. Tickets for the conference are on sale […]

  • Updating DocuSign Envelope Templates from FileMakerDecember 18, 2025 - 9:28 am

    When we first released our fmESignature Link (DocuSign Edition) solution we included support for working with DocuSign Templates. DocuSign Templates are perfect for almost any Docusign workflow that you do over and over again, for example sending the same document/s to different recipients such as non-disclosure agreements and rental agreements. DocuSign Templates allow you to […]

  • Databuzz 2025 End of Year Xmas Sale – 20% Off All LicensesDecember 15, 2025 - 10:46 am

    The Databuzz End of Year Xmas Sale is now on. We only have one sale each year and for the next 2 weeks you can save 20% on all Product Licenses including: Use the coupon XMAS2025 at checkout on any purchase and the 20% discount will be applied to your order (excludes Maintenance products). The sale runs until the end of the day on […]

Newsletter Signup

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

X Logo X Logo Followon X RSS Feed Logo RSS Feed Logo Subscribeto RSS Feed

Latest News

  • Databuzz releases fmESignature Link (Docusign Edition) v2 – Integrate the Claris FileMaker Platform with DocusignJune 9, 2026 - 6:00 am

Newsletter Signup

© Copyright Splash IT Consulting Pty Ltd T/A Databuzz | ABN 31 116 889 028
  • Link to X
  • Link to Facebook
  • Link to Rss this site
  • Home
  • Services
  • Products
  • Shop
  • Contact
  • About Us
  • News
Link to: Databuzz to Exhibit at the 2014 FileMaker Developer Conference Link to: Databuzz to Exhibit at the 2014 FileMaker Developer Conference Databuzz to Exhibit at the 2014 FileMaker Developer Conference Link to: New fmSMS Website Launched Link to: New fmSMS Website Launched New fmSMS Website Launched
Scroll to top Scroll to top Scroll to top