Title

One layout allowing one user at a time

Post

Hi,

I'm trying something out where a script opens a window with a specific layout. And any client user who will access the layout first will have that layout open only on his end. Any other users who try to access the layout would be denied, until the first user logs out or closes the database.

You'd need to set up a script--either a script performed by a button click that opens this window or by the OnLayoutEnter trigger that checks the value of a specific field in a specific record. If the field is empty, set a value to it and open the layout. If a value is set, don't open the layout and show a custom dialog telling the user that someone else currently has access to that layout and window.

Another script would need to clear that field when either the window is closed or the layout exited.

Not easily as this is an event that you cannot use to trip a script trigger.

You could log the date/time that the layout was accessed. The system could then detect when the layout is "checked out" by a specific user for an extended period of time but this may not be a reliable way to detect this possible turn of events.