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.

Limit Number Of Records?

Featured Replies

Is it possible to limit the number of records in a table. I have a sub-table in my database that I'd like to set a limit to 10 records. Is this possible?

Why not just have it in your script for creating a new record that if there are already 10 records then prompt user that you can not add any new records.

  • Author

The problem with that unless I'm missunderstanding is that not everyone will use the script to create new records. What if they use the "new record" command built into filemaker? The script would be bypassed then wouldn't it?

Well for me personally, I do not give my users access to those default menus. I try and let them use buttons as well as Custom Menus built for them (if you have developer/advanced).

What are you trying to use this table for anyway?

  • Author

I don't have developer or advanced. I was hoping there was a way to do it without that.

The table acts as a sort of grouping for records in the main table

ie; records in the main table that have a number that begin with 01 all group together with the 01 sub table and any info that is within it.

Why do they needs access to create records in this table then? Cant this be controlled by an admin?

  • Author

There is other information that goes into this related table that the user inputs. Also, the number of records in this table is someimes less than 10.

You don't need Developer/Advanced to restrict the creation of new records to scripted-only (the menu commands will be greyed out when you login as user).

  • Author

Well, I don't want to turn off access to that menu. It would slow the user down significantly if they couldn't create new records with a keyboard shortcut.

Then I would look for a plugin solution. Although it's possible to disable the automatic commitment of records and set validation to prevent committing the 11th record, it's not something I would recommend.

Or if you upgrade to FM8+ Advanced, you can create custom menus and still allow users to use shortcuts. It may be worth the investment.

  • Author

Looks like an upgrade is near in my future.

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.