3.0 beta 2

setCellModel(table) before or after table.request()?

Hi All,

Most code samples available here show this:
var table = new AW.XML.Table;

I have discovered that, by doing so, cell that user edited previously won't get back in synch. with the data source.

I solved this issue by issuing obj.setCellModel(table) BEFORE table.request():
var table = new AW.XML.Table;
obj.setCellModel(table); /* moved this instruction 2 lines up */

And it looks like working fine...

Any thoughts on possible drawback?

Thierry Nivelet (FoxInCloud)
December 9,
By default the request to the server is sent asynchronously and there is no difference if you call setCellModel before or after request (it will be before the data arrives in both cases). However in synchronous mode (table.setAsync(false)) you should call setCellModel before the request.
Alex (ActiveWidgets)
December 11,
You got it right Alex,
Though I did not mention it in my code sample my request is ... Synchronous!
Well done!
And thanks for the reply.
Thierry Nivelet (FoxInCloud)
December 11,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.