meteor Posted April 24, 2001 Posted April 24, 2001 Hi all, How to write a script so that no more than 1 user can action in a Layout (e.g. company list)
LiveOak Posted April 24, 2001 Posted April 24, 2001 What exactly does "action in a layout" mean? If you wish to protect against something, I'm sure it is not landing on a layout. What are you REALLY trying to prevent? -bd [ April 23, 2001: Message edited by: LiveOak ]
meteor Posted April 24, 2001 Author Posted April 24, 2001 In fact, there is a radio field in the layout. Users can check it in a list of record and push the button "select". Then all the records with the radio field being checked will be listed out in another layout. The problem is that, when more than 1 user using this function, user A will also list the checked record of user B. So, i want to have a script that can prevent concurrent use of the above function.
markpro Posted April 24, 2001 Posted April 24, 2001 How about something like this... Try creating a global field i.e. gusercount When the user hits the "Select" button. Set this field to "1". When the user is done reviewing the records, set this field to "0". When the user hits the "Select" button have your script check the gusercount field. If gusercount>0 Show Message [sorry, this function is in use] (etc.) [Halt Script] Else Set gusercount,"1" (sorry, getting lazy on syntax) perform remainder of script
meteor Posted April 24, 2001 Author Posted April 24, 2001 Hi markpro, Agree. Something like that......... However, BEFORE users click "select", they are checking records at the same database. The above suggestion only limit them from performing "select" but can't limit them checking different records at the same time. Then user A will still list the records checked by user B. Does my logic right?
Recommended Posts
This topic is 8619 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 accountSign in
Already have an account? Sign in here.
Sign In Now