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.

Locking Supercontainer if record is locked

Featured Replies

I've setup security in my database such that if a lock field is set, several things happen. Script triggers will verify from the field either allowing or disallowing events, and user privileage set is affected by it not allowing certain classes of users to edit or change the record (essentially everyone except admin).

However, this doesn't work for supercontainers on that same layout. I have successfully been able to lock the layout and all portals from it... but not supercontainers.

Can this be accomplished where if a field evaluates true, supercontainer does not allow changes but will display current content?

Yes - This can be accomplished by the ?style=readonly parameter. This will allow the contents to be shown and downloaded, but not overwritten or deleted. You can have part of your script which locks the contents of your layout also add this to your web viewer's URL.

Edited by Guest

  • Author

ok thanks for that.

Could I have essentially ?style=readonly become ?style=accesscalc

where the accesscalc is a calculation looking at my lock field. When the lock field is on and evaluates true, the text readonly becomes the field (probably using case), other is just ""?

This way it can be a calc and not have to be part of a script?

Yes, that would work fine. I'm not sure if you'll need to refresh the web viewer after your lock (I think filemaker will detect the change), but be aware that you may need to do it if it does not.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.