Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Looking up next available serial number


This topic is 6887 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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!

Posted

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!

Posted

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.

This topic is 6887 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.