Skip 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.

Serial Number

Featured Replies

  • Newbies

I have a program that has package numbers in it, i want the customer number to go in serial number based on the package. In other words when i hit New Record, I want the "Customer Id field" to wait until a package number is selected in the "Package Field", when a package is selected, ex. Package "1A" I want the Customer ID Field to look up all the records that are 1A and look at the last records Customer ID number and add 1 to that new record.

So in other words, if I have 360 records on Package 1A and 210 records on package 1B, when i hit new record and then hit package 1A , i want the Customer ID field to show 361, if i hit package 1B i want the customer ID to show 211.

Please include a sample of the script code to be written. And if it is possoble to insert the script in the definition of the Customer Id field.

Please help, as this problem is driving me crazy.

Thanks

Adam

Max (Self by CustomerID::SerialNumber) + 1

  • Author
  • Newbies

Thanx

But can explain in detail, because i still don't understand.

Thank You

It is a calculation, either scripted or autoentered. It looks for the Max value of SerialNumber (or whatever your field is called) through the self relationship (to the same file) via the CustomerID (or whatever the field is called).

This will get the max serial value for the customer and add 1 to it to generate the next serial number.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.