Skip 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.

Count Records and Field Average on found set

Featured Replies

I'm trying to create a report which will put the number of found records in a global field within the report layout. I also need an average rating from a field in the found set to be put into the report.

Both of these problems seem easy enough when working over all the records in the database but not when working on a found set! There is probably an easy enough answer to this one so a script pointing me in the right direction would be much appreciated.

  • Author

Anybody any thoughts on this one?

Try with the GetSummary () function

Find records

Sort them on the Break field -- this is a must do

Use the step

Set field (global, GetSummary (YourSummaryField, break field)

Since in your case you're not subsummarizing (breaking) the found set by any field create a Constant field, calculated =1 and sort on that ... sorting is necessary else the GetSummary function won't calculate properly

YourSummary field would be the total field or the average field you mention ...

If you want to show the number of records in a found set on a report, just put the text "@@" on the layout. To show an average of a field in the found set, create a summary field ( average of field xxx), and put it on the layout. It will only average the records in the found set.

  • Author

Bob

The symbols "@@" on the layout gives you the record number and not number of records?! confused.gif

Oops, right. You will need to create an unstored calculation field with the formula:

Status(CurrentFoundCount)

and then place this field on the layout.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.