Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Lock record when editing

Post Reply
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Lock record when editing

Unread post by ruiascensao »

Hi,

How can I lock a record when is being edited?

Thank you.
BR
Rui
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Lock record when editing

Unread post by admin »

Rui,

It depends on why you need to.

Are you..

-Updating other tables On Save?
-Stopping another user editing the same record that you are?
and
--Updating the record at all?
--Editing the exact fields that you are?

Steven
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Lock record when editing

Unread post by ruiascensao »

Hi Steve,

I need ..." -Stopping another user editing the same record that you are?"

Thank you!
BR
Rui
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Lock record when editing

Unread post by admin »

Rui,

Either you do this http://wiki.nubuilder.net/index.php/Forms#Save_Button that will give a warning if something has been edited since you opened the record.

Or you refer to flag you create in the table that won't allow editing when its set to locked eg. hide the Save Button.

Steven
axton
Posts: 1
Joined: Wed Apr 08, 2015 2:55 pm

Re: Lock record when editing

Unread post by axton »

-Stopping another user editing the same record that you are?
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Lock record when editing

Unread post by admin »

Nawaz,

What should happen if the person editing walks away from their desk and goes home? (noone can edit it)

Steven
Post Reply