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.

Featured Replies

  • Newbies

Hi all,

My problem is the following:

I have a field which is related to a list made of three items let's say "past", "actual" and "future".

I'd like to count the number of record where "Past" is selected, as well as the number of record where "actual" is selected etc...

Could someone help me ?

Thanks

Matteo

  • Author
  • Newbies

Sorry I just got my answer....

Create a field for each value (past, actual and future) and count using patterncount ( FieldList, "past").

Then display the total using a summary field = Total of (patternCount(...))

Sorry for disturbing...

Never disturbing ... that's what Forums is for. :wink2:

If you create a summary field (number) of Count(checkboxField) then:

Create a columnar report with sub-totals. Select the checkbox field. Group by checkbox field and sort by the checkbox field. Let FM store the script for you because sort order is important. Delete the body of the report. Place the summary field in the leading part next to the checkbox field.

Perform a manual find thus:

"past"

New Find Request

"actual"

Perform Find []

Then modify your script so it looks like this:

Go To Layout [ new report ]

Enter Find Mode [ uncheck pause, check Restore ]

Sort [ Restore ; No dialog ]

Enter Preview Mode [ pause ]

Enter Browse Mode [ ]

Go To Layout [ original layout ]

When you leave Script Maker, select REPLACE to store this new find within your script. Now this report will do it all for you automatically and additional fields are unnecessary. Sometimes this is useful; sometimes you need a calc field to always display your results. :wink2:

The added benefit of reporting is that the checkbox fields don't have to be hard-coded. If you later add another category, you'll always be adding fields ... with Restored Find, you can simply modify your find requests. And this will adjust if you want to restrict by dates as well - just include them in your search criteria.

LaRetta

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.