How to know when there are simultaneous users?
How can Ninox tell the current user when other users are using the same database at the same time, and provide the names of the current users?
6 replies
-
The function
user()
can be called. It will return the current user.Birger
-
@Dean.. I assume you are using the Ninox Cloud version.. then yes.. check out the user management functions here:
https://ninoxdb.de/en/manual/calculations/reference-of-functions-and-language -
Thank you for pointing me in the right direction.
users() – an array of all users: [user]
-
@Dean..
users() will return a list of all users assigned to the team.... regardless if they are currently active on the database or not.
user() / userId() returns the value associated with the user initiating this transaction.. So.. two (nearly) simultaneous transactions initiated by two users .... user()/userId() .. will return one and only one value for this specific transaction.Hope that makes sense.
-
It will be much easier if Member of the team was in bold (if they are login) in the database like the current plan.
-
@James... I do not know if there is a visual... Plus.. in a web app.. it is difficult to tell if they are still active ... sure.. there "could" be more visibility into the http session....
As a work around.. you could code a trigger after open to log a row in a "user session" table... It would at least give you visibility into the last time the opened the database.
Content aside
- 4 yrs agoLast active
- 6Replies
- 1408Views