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.

Re-serializing - after deletion.

Featured Replies

Hi,

In my serialized database, I have created a delete script that will delete a record only if it is the last record in the database, using Status(CurrentRecordCount). That is all fine and dandy.

My problem crops up when I add a new record after deleting the last one. The serial field in new record is now not continuous. i.e. there is a gap for the deleted record.

eg:

I have 48 records. I now add a new record (#49). I then decide that I don't want to add a new record and delete it. So, I still have 48 records. At a later stage I add a new record. But now the number of the new record is #50 while I still have only 49 records.

I tried to incorporate the replace field function, with update serial option in my delete script, but it doesn't seem to work.

Is there any other way to do this??

Many Thanks

Indy

Try using the set Next Serial Value script step. You should be able to use this to determine what is the next value you would want to use if a record is deleted.

John

  • Author

Thanks. I was using FMP 5.0 and the next serial value function isn't in it. Anyway, upgraded to 6.0 and it works fine with the new function.

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.