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 4058 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

First, I'm using FileMaker Pro 11 Advanced on a Mac platform

 

I've created a calculation that returns the number of rows that appear in my portal, but it only shows the number of rows before the portal filter is applied. My calculation is this:

 

Count ( Child::MatchField ) 

 

I've managed to do this on other layouts by creating a match field that encompasses all the criteria for the records that I want to appear in the portal. However, this particular portal iis filtered by variable information that basically allows me to narrow my results to more specific data. For example: In the Parent table, I have one record and in the Child table I have 20 records that match the criteria for the relationship which is:

 

Parent::PrimaryMatch = Child::PrimaryMatch

 

The portal filter returns any or all of the following matches:

 

Parent::Value1 = Child::SecondaryMatch or 

Parent::Value2 = Child::SecondaryMatch or

Parent::Value3 = Child::SecondaryMatch

 

Which returns only 8 records.

 

How do I get the Portal Row Count to only show 8 instead of 20?

 
Posted

Create a summary field in the portal table as Count of primaryID. On your layout, create a one-row portal with the same filter as your other portal, and place the related summary field in the portal. This will display the count of portal records.

 

To use this number within a calculation, give the field an object name in Inspector, Position tab and use GetLayoutObjectAttribute ( "objectName" ; "content" ).

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