Information générale
Catégorie:
Codage, syntaxe et commandes
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement