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

  • Newbies

Hello everybody. Please help me. I have my database invoice. All I want to do is: if the invoices were entered yesterday or any past dates, specific record will be automatically locked and nobody can do the editing today. Please send me a simple sample of the file. Thank you in advance.

A way could be a modification of this approach:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000604

--sd

I am assuming that you have some tight navigation in place.

Have a field, creation date, that is auto entering the invoice creation date. The create a calculated field, unstored, that returns a 1 if get current date = Creation Date and 0 otherwise.

Have two separate layouts for the invoice, one that allows editing and one where all of the fields are locked down.

When navigating to an invoice, if the calculated field =1 go to the editing layout otherwise go to the locked layout.

There are other ways to do this, but this works and it is easy to grasp. But, your navigation has to be locked down for them not to by-pass it.

HTH

Dave McQueen

Anything that works on the layout level is not truly secure and can be by-passed even by a relatively unsophisticated user. The proper way to do this is through Accounts and Privileges.

Note:

Make sure the CreationDate field is set to prohibit modification, and that you compare it to the host's timestamp, rather than the user's computer time.

Edited by Guest

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.