Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Special Sequential Job Numbers Field

Featured Replies

I would consider myself an intermediate user/designer. What I am trying to do is beyond me and I need the code or calculation for it.

I am creating a jobs table. The job number field can't be just a serial number field. We have multiple jobs per customer. What I am trying to create is a field that uses the customer number and appends a sequential job number to it separated by a hyphen.

When I paste the customer number "0001" into the customer number field I want a script that will take that number, paste it into the job number field, find how many records that number occurs in and appends found number of records + 1 to that number seperated by a hyphen.

If a customer number is entered as 0001 then I need the job number to read 0001-001 for the first job for that customer, 0001-002, 0001-003 for additional jobs and so on.

Thanks in advance for your time.

Try this,

Create a self relationship based on the client number field

Create a number field (for your serial number) with an auto-enter calculation,

Count(RelationshipName::Client Number Field)

Then if you need this displayed as a single field, create a calculation field whose result is text, with the calc,

Client Number Field & "-" & Serial Number Field

Phil

  • Author

Thank you, that worked great.

Now how can I make it so that the number is set in stone. Currently if I delete one of the previous records it will change all of the subsequent job numbers. Beyond record creation I need the job number to be stagnant or fixed, un modifiable. It's OK if the job numbers skip because I removed one of the records.

Is your serial number field set up as a number field with an auto-enter calc or is your serial number field set-up as a calc field itself?

If it's a number field with an auto-enter calc it should only evaluate on record creation and not be affected by subsequent deleting of a record (thank you Queue).

And you should set the field as Do Not Allow Entry In This Field in the layout.

Phil

  • Author

I changed the error and it works now. Thanks again

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.