setCellModel(table) before or after table.request()?
Most code samples available here show this:
var table = new AW.XML.Table; table.setURL(...); table.request(); obj.setCellModel(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 */ table.setURL(...); table.request();
And it looks like working fine...
Any thoughts on possible drawback?
Though I did not mention it in my code sample my request is ... Synchronous!
And thanks for the reply.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.