Hi all,
I’ve retrieved the Robot plugin from servoyforge site.
I’m trying to use it but I don’t understand how.
I’m using servoy 6.0.3 version with the last java built on windows 7.
I’ve followed this procedure:
1 - I’ve create an user on the application server called “admin” with password “admin” (I’ve just this user)
2 - Under the server plugin page I’ve set the “com.servoyguy.plugins.robot.accesspassword” with the password set on the point 1, so: “admin”.
3 - I’m trying to execute a function as follow:
plugins.servoyguy_robot.checkAccessPassword("admin")
application.output("authenticated")
var _clients = plugins.servoyguy_robot.getClients()
var _client
var _dataset = databaseManager.createEmptyDataSet(_clients.length,["clients_id","clients_userName","host_address"])
for(var i=0;i<_clients.length;i++){
_client = _clients[i]
_dataset.addRow(new Array(_client.getClientID(),_client.getUserName(),_client.getHostAddress()))
}
The problem comes when I try to evaluate the “_clients.length” because “plugins.servoyguy_robot.getClients()” returns always “null”.
I’ve tried also to use more than one client but the results is the same.
Am I missing something?
Thanks in advance
Marco