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

Skipping Indexed Numbers between Records


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

Recommended Posts

  • Newbies
Posted

Hello, and thanks in advance for any assitance. Fair warning, as a noob I may be missing the obvious. (I have tried to find an answer for this.) Here's the problem:

I'm working on a project where my client provides quotes, but not all quotes become jobs. In addition to the Quote Number which is indexed and applies to every record (no issue there), he wants an indexed Job Number assigned only to those quotes that are accepted as jobs. This means that he wants an indexed sequence that falls in order of record, but has the ability to skip records without skipping numbers.

I think that I may need a field returning true (radio button?) that then prompts a search for the last record with a job number applied and provides the next indexed number in a separate field, but I've no idea how to actually accomplish this. Am I making the task more difficult than it is, or is this just one of those things that must be hashed out?

Posted

The ID use use to create links between tables should not hold ANY meaning to the end user. And should be unique and not user editable. So as long as this field you speak of is not the KEY fields between tables then you can imposed any "logic" via a script.

When you wish to ASSIGN your number you could attach a script to a button that grabs the Max(table_self::Job Number) + 1 provided you have a Cartesian self-relationship.

your table occurrences..

table::somefield [X] table_self::somefield

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