List of Active Users

Questions, tips and tricks and techniques for scripting in Servoy

List of Active Users

Postby kwpsd » Tue Jan 24, 2012 1:31 am

Version: 6.0.4 - build 1227

How do you get a list of active users (i.e. users logged into a solution on Servoy)?

We tried using the Maintenance plugin as follows:

Code: Select all
var aClients = plugins.maintenance.getConnectedClients()

var fvCLIENTS_number_connected = aClients.length

        for ( var i = 0; i < fvCLIENTS_number_connected; i++ )
            var oClient = aClients[ i ]
            ds.addRow( [
                       ] )

but the '.length' property throws an error. We reported this as a bug to Servoy, and they responded as follows:

Resolution: Won't Fix

The typeError you get for length property is due to the usage of the length property related to the maintenance plugin (you use that when you get the connectedClients array). As the sample code says, the maintenace plugin is meant to run during solution import, using before or after import hook (so not from Smart/Web client). Therefore, we strongly recommend not to use the maintence plugin in such smart/web client scenarios.

Our customers are asking for this feature (it has been a feature in our Visual FoxPro version of the product for 25+ years). We do not want to give them access to the Sevoy HTML Admin pages as they are not technically saavy.

Kim W. Premuda
San Diego, CA USA
User avatar
Posts: 683
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: List of Active Users

Postby ngervasi » Tue Jan 24, 2012 10:50 am

Have a look at the Usermanager plugin from Patrick Ruhsert.
Nicola Gervasi
SAN Partner
Posts: 1483
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: List of Active Users

Postby mboegem » Tue Jan 24, 2012 11:25 am

Scott Butler recently added his Robot plugin on ServoyForge as well.
Didn't look into it yet, but is seems to be doing kind of the same.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer


Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
Posts: 1697
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: List of Active Users

Postby kwpsd » Wed Jan 25, 2012 11:50 pm

Thanks, Nicola and Marc. I am looking into both suggestions.
Kim W. Premuda
San Diego, CA USA
User avatar
Posts: 683
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Return to Methods

Who is online

Users browsing this forum: No registered users and 1 guest