cancel
Showing results for 
Search instead for 
Did you mean: 

How can I check whether the client or browser is still there?

Former Member
0 Kudos

Hello,

I have a SAPUI5 application and use OData. In the application, the user can edit the table. When the user edits the table, then it sets a lock objects. The lock object should be removed when the browser is closed. My question is:

How can I check whether the client or browser is still there? Is that anyway possible?

Sorry for my bad english.

Best Regards,

Claudia

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

OData protocol is stateless and hence you cannot have persistent lock on the object on backend.

Regards,

Chandra

Former Member
0 Kudos

Hello Chandra,

thank you for your answer. For keeping the lock, I use soft state and it works well, except for the resolve of the barrier.


Best Regards,

Claudia

ChandraMahajan
Active Contributor
0 Kudos

Hi Claudia,

Okay I have not implemented soft state feature yet and hence do not know much on it. but here are few suggestions.

If the browser is closed then I guess it will end application server session and hence the lock will be removed. Simple test you can perform is to change the table in backend session to check if it is still locked by UI5 application or not.

Or check in transaction SM12 if the lock entry is available.

also we can maintain session timeout in SICF transaction for service as mentioned in this blog

Perform test for session timeout as well.

Regards,

Chandra

Message was edited by: Chandrashekhar Mahajan