Jump to content

Locking Supercontainer if record is locked


This topic is 5277 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This topic is 5277 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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