Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ban concurrent use of a Layout

Featured Replies

Hi all,

How to write a script so that no more than 1 user can action in a Layout (e.g. company list)

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 ]

  • 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.

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

  • 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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.