Support Topics Documentation Slack YouTube Blog

Need help creating a cloud code

hi there,
i need help in updating a column value in cloud code (Business logic).

this is what i want in details,
whenever a client connect, i want to update a column value named “IsOnline” as “UserIsOnline” in the ''Login" table where the ‘‘userId’’ = the client that connect.

Codeless, JS or Java?

codeless

To accomplish what you described, you need to create a real-time event handler:
Event Handlers - BL - ConsoleDemo - Backendless 2020-06-29 21-31-47
The implementation of the event handler should look something like this (I haven’t tried it myself, so you need to play with it):
Codeless - BL - ConsoleDemo - Backendless 2020-06-29 21-33-45