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.

Simple Count of Fields?

Featured Replies

I'm sure there will be a way but I can't figure it out. I have a field (STATUS) that has Radio buttons. The Selections are either "Ready", "To Fax", "Approved"

I need to make a summary on my Main Page layout that counts how many records in field (STATUS)have "Ready" selected. I'm a beginner and can't figure it out. Count(field...) just seems to count the number of records with anything in the field, this does not work because the field may contain "Ready", "To Fax" or "Approved". I need it to count the number of records with "Ready" in the (STATUS) field.

One option was to make a script that performed a find of "Ready" in the (STATUS). and then a simple Count(STATUS), however this didn't look very good because if there were no records with "Ready" in the status field the "NO RECORDS MATCH THIS REQUEST" comes up. And I need "0" to come up.

Is there a way to stop the "NO RECORDS MATCH THIS REQUEST" window from popping up?

Suggestions greatly appreciated.

you can use the PATTERNCOUNT function for your field, such as:

CountReady = PatternCount (STATUS; "Ready")

To get the total of the "Ready", you may use a summary field based on "CountReady"

CountReadySum = Total of CountReady

To supress a pop-up, you can use:

Set Error Capture [on]

Another alternative is to use a global field in a self relationship and use the count function.

1. Create a global field of the same type as your STATUS field.

2. Create a relationship between this field and the STATUS field.

3. Set the global field value to the particular STATUS you want to check, e.g. "To Fax", etc, the same as what is entered into the STATUS field.

Commit the record.

4. Simply use count(TheRelationshipInStep2Above::AnyFieldInTheTable)

That should return a count of the number of records with the same value as the global field.

Echo

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.