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.

Creating Record IDs within a range

Featured Replies

I would like to create a number field that would have a number range from 0000 to 9999. The highest number would be 9999 after reaching it, the field would go back to 0000.

I also want to have a script that would allow me to increase and decrease the number on that field by 1, taking into consideration that if the field has the number 0000 and I use the script to decrease that number it would have to go to 9999.

thanks in advance. cool.gif

Create a global number field called gNumber. Create a script that:

finds all records

sorts (ascending) by your record ID field

goes to the last record

sets the record ID of the last record into the gNumber field

creates a new record

sets the record ID field of the newly created record using the following calculation:

Case(

gNumber<9999,gNumber+1,0000)

One thing I would recommend, though, is to create a number field that is an auto-enter serial # (your users never need to know it's there). Do you forsee any problems with records in your database having duplicate record ID? At least with an auto-entered serial #, you'll be able to sort out any messes that will result from having duplicate record IDs.

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.