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

Recommended Posts

Posted (edited)

I have three portals on a single layout, and would like to count the rows in one portal and return the result to a field. Again, not much success.

Thanks for your help,

Jason

Edited by Guest
Posted

Hi Jason,

A portal is a relationship signified by a table occurrence. You can count the children (in any relationship) in that table occurrence by, from within the parent, a calculation (result of number): Count ( thatPortal::non-emptyField )

... where thatPortal is the portal with rows you wish to count and the non-emptyField is (preferably the child uniqueID but at minimum any child field which is NEVER empty).

If this doesn't give you what you wish, let us know and we can (with further information) fine-tune it for you.

LaRetta :wink2:

  • 4 years later...
Posted

Hi Jason,

A portal is a relationship signified by a table occurrence. You can count the children (in any relationship) in that table occurrence by, from within the parent, a calculation (result of number)wink.gif Count ( thatPortal::non-emptyField )

... where thatPortal is the portal with rows you wish to count and the non-emptyField is (preferably the child uniqueID but at minimum any child field which is NEVER empty).

If this doesn't give you what you wish, let us know and we can (with further information) fine-tune it for you.

LaRetta :wink2:

How does this work when filtering the portal. I assume one would have to create a new field that contains a value if the criteria you're filtering by is true, and then count that field?

Posted

Actually I see this old example show using Count() in the parent table.

I would instead suggest using a summary field in the child table and use THAT in the one-row portal.

I prefer summary fields because they can be placed on any parent layout and adjust their value properly. Calculations created in the parent which aggregate child data are only valuable in THAT parent for THAT child relationship.

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