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.

How to Duplicate & Then Lock Previous Record

Featured Replies

  • Newbies

Hello,

I am creating an inventory database where I need to save an inventory history. I need to be able to duplicate an existing record (simple enough) and then lock the original record so only the duplicated record can be edited. How do I lock the original record after creating a duplicate?

Any info is greatly appreciated.

Thanks!

Tom Bardenwerper

[email protected]

quote:

Originally posted by Werper:

Hello,

I am creating an inventory database where I need to save an inventory history. I need to be able to duplicate an existing record (simple enough) and then lock the original record so only the duplicated record can be edited. How do I lock the original record after creating a duplicate?

Any info is greatly appreciated.

Thanks!

Tom Bardenwerper


The easiest way I can think of is to have a flag in the record called Locked which is set to either 1 or 0. When you want to lock a record set Locked to 1. Whenever you have a script which could possibly allow the user to edit the record, check the value of Locked. If the record is unlocked, take the user to a layout that allows data entry. If the record is locked, take the user to a layout that only allows data viewing. Since it's only going to have a value of 1 or 0 (true or false), you can have your script do something like this:

If [ Locked ]

Go to Layout [ Data View ]

Else

Go to Layout [ Data Entry ]

End If

Chuck

  • Author
  • Newbies

quote:

Originally posted by Chuck:

The easiest way I can think of is to have a flag in the record called Locked which is set to either 1 or 0. When you want to lock a record set Locked to 1. Whenever you have a script which could possibly allow the user to edit the record, check the value of Locked. If the record is unlocked, take the user to a layout that allows data entry. If the record is locked, take the user to a layout that only allows data viewing. Since it's only going to have a value of 1 or 0 (true or false), you can have your script do something like this:

If [ Locked ]

Go to Layout [ Data View ]

Else

Go to Layout [ Data Entry ]

End If

Chuck

Thanks Chuck! That did the trick!

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.