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.

FM7 IWP: limit edit records to current session?

Featured Replies

Via IWP, I'd like to allow a person to create a new record, and have a few chances to edit it before the session ends (they logout or time-out).

I want to make sure, however, that nobody can accidentally (or maliciously) view or edit another person's records. Has anyone come up with a simple yet robust solution for IWP?

I really wish there was a Get(IWPSessionID) function!

Since there is not, I'm consider some other ways of doing it. What about storing the record creation timestamp, and the Get(SystemNICAddress) value, and then setting custom record access using a formula with the current time and current SystemNICAddress. This would, in theory, limit record editing to being on the same computer within the same time period?

Ideas greatly appreciated...

You wouldn't be able to capture the NIC address of the user over IWP, that functions returns the host address over IWP. You should use the account name instead. That way the person would need to log in using the same account as the account used to create the record. Then just add an additional criteria for the record timestamp with the Get (CurrentHostTimeStamp) function.

Just put this formula in the View, Edit, Delete, dialogs for the custom record privileges.

Dana

  • Author

Thanks for the tip on the NIC issue.

I need this form to be accessible w/o login -- so username won't do any good here.

Does the IP address also return the Host or Client IP?

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.