Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi,

I have a question, is it possible that when a record has a certain status it cannot be changed annymore.

For instance i have records in a database with the status "paied" then the record may not be changed anymore.

Thanks,

Frans

Posted

Yes. Search the forums for "record locking".

Posted

Hi Vaughan,

Thanks for the reply.

I found this article from Steven H. Blackwell:

In several different venues over the past several days a number of different developers have inquired about processes for locking records in a table against further changes once a set of business rules are satisfied.

Unfortunately in some instances the recommendations given in answer to these inquiries can fail and leave records vulnerable to hacking. These include the idea that layout access manipulation can somehow protect the record against being altered.

In my view the best and most secure way to institute a record lock process is to use the Record Level Access privileges options found in the Edit Privilege Set options.

For any given table, create a field named “Lock” of the type number, auto-enter data of 1. Check the flag saying “Prohibit modification of value during data entry.”

Then in the Manage Accounts & Privileges-->Privilege Sets-->Edit Privilege Sets--> Records, select Custom Privileges. In the Edit column for the table you want, select limited. Pick the field “Lock” from the list of fields.

In the Field Access column, select the field “Lock” and mark it for No Access. This affords maximum protection against the field’s being modified in an unauthorized fashion and altering the state of the record.

When the circumstances occur that cause you to want to lock the record, use a script set to “Run script with full access privileges” to set the field “Lock” to 0. If “Lock”=1, the default entered value, the record can be edited. If “Lock”=0, the record cannot be edited.

I tried this but i don't get the result as described, i don't see the records in a portal anymore.

What do i wrong....??

Thanks,

Frans

Posted

If the primary or foreign key field is marked no access, then the data in it cannot be seen... so it won't show up in relationships.

Posted

Hi Vaughan,

I figured it out, but i have one thing that is not working like i would.

I have a delete button on every row in a portal, i stil can use it though i restrtict the user to make any changes in the record,

How can i avoid this....?

Thanks,

Frans

Posted

You need to lock the related records if the parent record is locked.

Posted

Hi Vaughan,

Thanks for your reply.

The related records are locked but i stil can use de delete button.. is there a way to avoid this?

Thanks,

Frans

Posted

Change the privilege set to prevent delete if the record is locked.

Posted

Hi Vaughan,

Thanks for your reply, it works.

Frans

This topic is 4655 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.