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.

Lock records so they cant be edited

Featured Replies

Hi guys, dont know if this is the right forum to ask this, but is there a way of preventing editing a record (and its children) once the user adds another record or goes to another layout without firing a script!

I was thinking I could do something using a timestamp, basically, give the user 5 minutes to key a record before it becomes locked, but is there any other 'better' method anyone can suggest?

Thanks

Jalz

If you have a serial ID and avoid deleting of records you can restrict editing of records with the calculation

ID = Get ( TotalRecordCount )

which allows only the last created record to be edited.

-jens

What if you delete the last record ?

Then you'll be able to edit the previous one.

Also Ids ( auto-enter serials ) not always have the same number of the records

I have to rethink my suggestion. Also in multiuser environment there will be difficult behaviour. If first user creates a new record and starts editing he will be interrupted by a second user starting the same.

-jens

OK second try:

- Define a global field or a $$variable _edit_id

- prohibit creation of new records by accounts and privileges

- perform script 'New Record' with full access

- set $$_edit_id to ID of new record

- set user privilege to allow edit only if ID=$$...

-jens

  • Author

Many Thanks to both of you.

I will try jens second approach tomorrow.

Jalz

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.