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.

Struggling with counting records

Featured Replies

I am trying to set up a calculated field that will give me the name of each related record in a portal based upon which record number it is.

Basically, what I want to do is create a calc that will name each row of a portal whatever number of a series that the portal row falls in to and also count the total number of related records. i.e. - 1 of 5, 2 of 5, 3 of 5, etc.

I'm not sure where to put the calc. It would make more sense to put it in the parent relationship so that it can count the related records, but when I do this using a count ( related record) field it only gives me the total number of related records in my portal.

  • Author

Well I sort of got what I wanted by using the @@ symbol and then creating a calc field in the parent record that counts the related records. I'm still curious if there is a way to accomplish this via a pure calculation field though.

Where do you want to use this? In the portal itself?

  • Author

Two places, in the portal itself and in the related record as a name.

Edited by Guest

In the portal, you could use a calculation field (defined in the child table) =

Get ( RecordNumber ) & " of " & Get ( FoundCount )

This will work dynamically, so if you delete or add a record, or change the sort order of the portal, records will be renumbered to reflect the change.

Not sure what you mean by "in the related record as a name". The "related record" doesn't know it is related; in fact, it could be related to many tables or related to the same table in more than one way.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.