View Full Version : Data and multiple users.

28 Feb 2013, 11:04 AM
We are considering using Sencha Ext JS for our next commercial project and I have a question that I can't seem to find the answer to by searching Google.

Basically we have a database that is accessed by multiple users. Let's say that user A pulls up a report (grid) and is looking at records 50 through 100. Now let's say user B (on another computer) pulls up the same report and modifies record 75.

The issue here is that now user A is looking at stale data. The ideal thing to do would be to have record 75 auto-magically update on user A's screen. Does Ext JS have something built-in to do this?

Thanks for any insight into this.

28 Feb 2013, 3:25 PM
There are several options ..

Here is a video for jWebsockets:

Here is an article using NodeJS/Sencha.IO: (as an example)

The other option would be to stamp the record on save .. if user A tries to save after user B, then it would compare the stamp and load the new record instead of save .. (in simple terms)