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.

Looking up next available serial number

Featured Replies

Hi. I have a solution where i need a to add an authorization number field in a table. the valid numbers are stored in another table. when i create a new record in the master table i need to assign the next available number in the related table that has not been used. this needs to be scripted so i can create a 'Add Authorization Number' button.

i assume this is easy to do, but i cant figure it out.

How many authorization numbers can a record in the main table have?

  • Author

a record can have multiple authorization numbers. probably never more than 4 would be required.

  • Author

thanks comment. this is very close to what i need. the difference is that my auth number table will already be populated with the numbers (and they are not necessarily sequential). so i need my main table to look at the auth table and choose a number that has not been added to a record yet. does that make any sense? thanks!

  • Author

I think that is it! Thank you so much!

  • Author

One more question. how would i set it up so that if a user adds a number to a record in the main table and then removes it, it will not be removed from the authnum table, but the authnum table will reflect that the number is available to use again?

if i delete an added number in the main table, it also deletes it from the authnum table. i dont want to delete the number from the auth table, just change the available count back to 1.

thanks again!

Define a script:

Freeze Window

Set Field [ AuthNumbers::MainID; "" ]

Commit Records/Requests

Create a button to run the script, and place it inside the portal. Clicking the button will free up the authorization number, making it available for future asignments.

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.