Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Greetings,

I am trying to create a database that will automatically create a document number when the user clicks "Create New" button. To do this, I have created another table, which I will used as a counter of sorts. It will keep track of the last number used, and when the new document is created, it will up the number by one in both places. I am not sure how to access the counter from the scriptng page, though. There are more than one type of document, so it will have to be able to find the exact field I am pointing it to, and change it after the creation process is complete.

If anyone can help me with this, I would be very grateful!

Thank you,

A.

Posted

Hello and welcome!

You could define one table for each documenttype, each table consisting of just one field with an auto-entered serialnumber.

The 'Create New' button would then have to create a new record in the table for the corresponding document type, read the serialnumber field and copy it to a serialnumber field of the main document table.

Ernst.

This topic is 7505 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.