April 24, 200124 yr Hi all, How to write a script so that no more than 1 user can action in a Layout (e.g. company list)
April 24, 200124 yr 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 ]
April 24, 200124 yr Author 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.
April 24, 200124 yr 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
April 24, 200124 yr Author 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?
Create an account or sign in to comment