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.

Help in write a script

Featured Replies

Hi All,

I have a field called “b_number”, how do I write a scrip asking to find the biggest number at b_number field andafter found I will have the add from the b_number +1 added at b_number.

Any help will be appreciated. Thank you in advance.

;)

asking to find the biggest number at b_number field andafter found I will have the add from the b_number +1 added at b_number.

Why not just use an auto-enter serial number? It would save a lot of work. Can you say a bit more about what you are doing and why? What is that b_number?

  • Author

I do have a field with an auto serial number. b_number is to used for a receipt number when people paid in full so each time someone paid I have to print a receipt but it have to be in a serial number.

I think you should have a separate table for receipts.

A couple of ways to solve this:

1. Use a relationship and a calc:

Max(related:;)_number)+1

2. Or, use a script something like:

Show All

Go to record(last)

Set variable($theBiggest;b_number)

New record

Set field(b_number;$theBiggest+1)

Edited by Guest
Why does this forum sometimes break text apart?

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.