deego55 Posted March 13, 2006 Posted March 13, 2006 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.
comment Posted March 13, 2006 Posted March 13, 2006 How many authorization numbers can a record in the main table have?
deego55 Posted March 13, 2006 Author Posted March 13, 2006 a record can have multiple authorization numbers. probably never more than 4 would be required.
deego55 Posted March 14, 2006 Author Posted March 14, 2006 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!
comment Posted March 14, 2006 Posted March 14, 2006 That should be perhaps even simpler. AuthNumber.fp7.zip
deego55 Posted March 14, 2006 Author Posted March 14, 2006 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!
comment Posted March 14, 2006 Posted March 14, 2006 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.
Recommended Posts
This topic is 7173 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 accountSign in
Already have an account? Sign in here.
Sign In Now