How do I get the count of the currently logged in users in the database (developers included.)
With getActiveClientCount I get 1 as result, while i have 2 developers and 1 client logged in.
How do I get the count of the currently logged in users in the database (developers included.)
With getActiveClientCount I get 1 as result, while i have 2 developers and 1 client logged in.
Clients are… clients
Developers are not clients and should not be used as a client. And certainly not more than one imho…
Hi marcel
i just need to know how many “persons” are logged in, no matter which Servoy they uses. Is that possible?
Oops, I thought that it was clear. The answer is no.
Developers don’t use the running server to make a connection so that server is not aware…
irenem:
How do I get the count of the currently logged in users in the database (developers included.)With getActiveClientCount I get 1 as result, while i have 2 developers and 1 client logged in.
Running server and developer simultaneous is not a very good idea.
We are developing a solution and use the clients only for test purposes.
What I want to do is to limit the concurrent users for our solution at startup. I have a field with a maximum number of users and I should be able to calculate how many are currently logged in.
The reason I want to include the developers is that if somebody logs in with a developer version he wont be seen. But if it’s not possible I cal live with that.
But also if 2 clients are in the same solution i get the result of 1
var x = application.getActiveClientCount(true)
what am I doing wrong?
But also if 2 clients are in the same solution i get the result of 1
Just to be sure, are the developers up as well?
Any chance that one of the two clients is connected to another developer?
The reason I want to include the developers is that if somebody logs in with a developer version he wont be seen.
But what about the repository this developer is using?
Is it the same as the server?
Really as JA also stated you are preparing for a potential mess but you certainly take a risk!
Ok, now I’m loosing it.
We have a server. On a separate computer I’m running the developer that is connected the repository on the server. Sometimes I run a client which I ‘download’ from the client launcher connected to the server.
Is that wrong? I never experienced problems.
Please excuse my stupid question I’m not very experienced with Servoy.
We have a server. On a separate computer I’m running the developer that is connected the repository on the server.
This is dangerous because the server and the developer have their own connection to the repository. When somebody adds a record, using the developer and Servoy keeps track of ids that could cause an issue because the server is not aware of this.
This is only one example. What about data broadcasting, the server is not aware of the developer connected…
etc.
Sometimes I run a client which I ‘download’ from the client launcher connected to the server.
This is how it should be and is ok.
Is that wrong? I never experienced problems.
See above…
Please excuse my stupid question I’m not very experienced with Servoy.
This is described in the documentation if I am correct.
So if I understand you, I should develop on my own computer and then upload the solution to the server.
What about data broadcasting, the server is not aware of the developer connected…
But what if nobody is actually working on that server, it is just there for development purposes. The data we have is only test data.
So if I understand you, I should develop on my own computer and then upload the solution to the server.
or make sure the server is not running.
But what if nobody is actually working on that server, it is just there for development purposes. The data we have is only test data.
You did not tell at first!
When REALLY nobody works on the server there is no risk but working with 2 developers on the same repository, without them being on multi developer is still not preferred but in this case because of the repository and not the data…