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

with out using auto serial, I can create a calc that will get the max of the field and add 1 when creating a new record, which is great untill two users create a record at the exact same time and then I have a duplicate id. Can you think of any way to avoid the dup (no using the unique validation) but through a calc???

I am trying to allow the users the use of the regular menus items without having to use a button that I would create.

From what I know, the only really safe way to get an incrementing number is to produce it, via script, in a 1-record table, with the record locked while the script is running. In 7 you would use an explicit Open Record to lock it, then Commit Record to release it.

This would be inside a Loop, with ErrorCapture[On]. It would run for a set number of tries, looking for error=0, then give up if still locked, with a dialog. This is all the same as FileMaker 6, except for the explicit Open Record (in 6 Go To Field would lock it, but no longer).

Also, the max() function gets slower and slower as you accumulate records. Logically a Last() function should produce the same thing a lot faster, if the numbers are incremental, which they are supposed to be.

Or use ONLY scripted deletion, and adjust the "next" number in the 1-record table, so it is always correct.

I don't think there's any foolproof way to get these incrementing numbers via the "regular menus", ie. New Record. As you say, there's a possibility that 2 users will create a new record at exactly the same time.

  • Author

Thanks Fenton, that helps, not only with my current 7 project but an old 6 that I should tweak

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.