Maximo Open Forum

 View Only

 How Can I Refresh All UI Sessions?

Jump to  Best Answer
  • Customizations
Toni Fields's profile image
Toni Fields posted 08-03-2023 13:30

Background: I have developed an application that will allow a user to select records from one table and insert them into another table to perform some action. In the original table, I make the selected item read-only so that the user cannot choose the same record again. I found a way to refresh the original and subsequent tables to reflect these changes.

However, if 2 users are using the exact same application and one user adds a record from the original table to the subsequent table, the other user's session doesn't reflect the changes that occurred in the other user's UI. I need to find a way to select the webclientsession from the other user, so that I can "refresh" their session to reflect the other user's changes. Is there a way to get the web client session by session ID?

Thanks in advance for your help.

Steven Shull's profile image
Steven Shull  Best Answer

No, you cannot access another user's session to force a reload. You need to instead throw an error during the save process if someone tries to select the same item. Depending on how you have this implemented, you can also look at enabling edit mode in the application. This is a way to enable only 1 user to checkout a record for modification purposes. 

Toni Fields's profile image
Toni Fields

Steven,

Thanks once again for your help. I have created an error message already to handle this, but I was hoping to find a better way. I will look at the Edit Mode, as you suggested. I was under the impression that Edit Mode was for multiple developers working on the same application in App Designer, but I must've had the wrong understanding. Once again, thanks!