Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Featured Replies

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

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:

  • Author

That worked too

Thanks so much!

  • 4 years later...

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?

Hi Matty, Just put the same summary field in a one-row portal which is filtered identically to the filtered portal. :-)

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.