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

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

Recommended Posts

Posted

I need help with creating a calculation that can number 100 created records from 1-100 sequentially without having to go into define fields and set the first number to 1 before creating them.

Thanks

JG

Posted

If you create a self-join relationship with the database, then

Count(self_relationship::databasefieldname)

And assign your serial number to that, it would work but there are some pitfalls like what if a record in the middle is deleted. You may want to use something like

Max(self_relationship::databasefieldname) +1

Posted

Create a one record database. Add a number field: "Record No".

From your database control the creation of records with passwords, and via a scripted button. Then every time you create a new record. Set the field in this file via a relationship. To itself plus one. Then set the field in the local file to the new number. With a little work this system works fine even in multiuser environments. You need to add some additional scripts steps to prevent duplicates but it is possible.

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