Jeffrey Kain wrote: >We have a bunch of dedicated job clients that all log in to 4D with the same >username. When a locked record occurs (I'm using LOCKED BY), >I want to display the workstation name that's holding the lock... is there a >way to get this, other than to assign each workstation a unique username?
Take a look at "Get locked records info”: https://doc.4d.com/4Dv16/4D/16.4/Get-locked-records-info.301-3978761.en.html "The Get locked records info command returns an object containing different information about the currently locked record(s) in aTable. Note: The command works only with 4D and 4D Server. It returns an invalid object when called from 4D Remote. However, it can be called in this context if the "Execute on server" option is activated for the calling method. In this case, the object returned will contain information about the server. When called from a component, it always applies to the host database. … Object containing information similar to the LOCKED BY command but applied to the record, the difference being that Get locked records info returns the user name defined in the system and not that of the 4D user…" Regards, Ben Kershaw ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

