General information
Category:
Coding, syntax & commands
>Could someone suggest an approach for keeping a record in Read-Only mode for all subsequent users? This assumes that a user already is viewing the record and possibly making changes. What I want to do is allow a user to access a record, setting all fields to read/write. Another user comes along and gets a message that the record is being edited by someone else, and is NOT allowed to switch all text fields to read/write. They remain READ only, but viewable.
>
>thanks
Using the user table I have a function Users.onlyuser('something') that only allows one user to do something. Returns .F. is someone is already doing 'something'. Implement simply by writing 'something' into a field in the user file. This field should be cleared on log off and log on!
Then you simply call this function in your grid code to determine read/write ability etc. And it's useful in many multiuser situations.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only