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.

Featured Replies

If I delete all of the records in a table I want to reset the Auto-Enter Serial Number ID field to 1 (one). Also, if I only delete some of the records I would like the serial number to be reset to the max of the ID + 1. I feel like I saw this script somwhre but cannot seem to locate it.

You did see it somewhere - in the help smile.gif

the script is "Set Next Serial Value"

From fm7 help:

Go to Record/Request/Page [Last]

Set Next Serial Value [Table1::Invoice ID; Table1::InvoiceID + 1]

hope that helps,

sincerely

J__

you can try use a count:

SerialNumber, calc, = Count+1

Count, number, =0

and a scritp "Reset"= Set Field Count="0"

your serial number begin in 1, and will being increased, when you reset by the script, has a new begin to 0.

Just try.

Tere Lavin

[email protected]

sorry, you need 2 scripts to make the count.

or when you make a new record, on the new record script add, SetField(Count)=Count+1

and will being increased too.

i hope help you.

Tere Lavin

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.