Hi Michael,

On Wednesday March 17 2010 12:55:34 Michael_ wrote:
> Suppose the following Szenario:
> We have a Database Table with 3 columns.
> 1. Lastname
> 2. Firstname
> 3. Zipcode
> 
> Now I open a Query (qx.ui.table.Table with remote Table Model) ordered by
> Lastname with 
> columns lastname,firstname,zipcode.
> 
> Now I move to Row 100 and there is a Lastname  "Sabo".
> (On Row 101 the Lastname is "Seitz")
> I select Row 100 (Lastname "Sabo").
> 
> Another guy on another Computer also opens a Query. He moves to Row 100.
> He also sees Lastname "Sabo". Now he changes the Name to "Szabo".
> 
> After that I decide to to something with my Selection. 
> The Problem ist: Selection returns Row 100. But in the Database Row 100 is
> now "Seitz" and not "Sabo" (or "Sabo") so I get the wrong record.
> 
> And now my Question: 
> Is it possible to give the Selection Manager a field from the Model (some
> meaningful Information say for example the Rowid of the Record or some
> primary unique Key?)
I guess this scenario is only solveable if the client gets a info or ask for 
the info if the current data set is up to date.
So you e.g. ask your server before editing a cell if the content is up to 
date. If not, the model need to be reloaded. This means that an user need to 
do a round trip to the server, but at least you would not end up in any 
inconsisteny. 

cheers,
  Alex

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to