Jump to content

Ban concurrent use of a Layout


This topic is 7782 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This topic is 7782 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.