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.

Script to run a count on a portal row

Featured Replies

I have a database that tracks student tardies. All that works fine. The tardies are kept on a file server. Now I am working on a report that will show me the studentID, LastName, FirsName and the total tardies that they have. I know how to write the script to go to my layout but how do I keep the students from posting on my report that do not have tardies?

My student database tracks it using:

Count (Tardies::StudentID)

Produce the report from the Tardies table, using only a sub-summary (by StudentID) part.

Alternatively, find the students that do have tardies first.

  • Author

Is there another way that I can get this done. I cannot seem to get the sub-summary to work. I can get the counts of the students but cannot filter out the ones that have a null value for the field of count. I have over 2500 students so I only need to see the ones that actually have a value in the count field.

Does this work for you?

Tardies2.zip

  • Author

That is an excellent example. I cannot seem to get it to work on my program though. It gives me blank spaces and then when it does give me the count it gives me the student name 7 times with the number 7 beside each one if the student has 7 tardies. I am attaching an example so you can see what I did wrong. Thank you for the help so far.

TardyCalc_-_Forum.zip

Two points:

1. Examine the report layout in the example file: it has no body part, only a sub-summary (by StudentID) part.

2. The "blank spaces" are tardy records that do not have a related record in the Students table (e.g. tardies with StudentID = 182389).

BTW, which version are you using?

  • Author

Thank you. I will look at it. I am using FileMaker Pro 11 advanced.

  • Author

Thank you, it works now. That is what I needed to finish this program. Again thank you very much.

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.