|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Unable to clear data from Simple TableHi there,
qooxdoo 0.7.3 IE 6, FF3 I have the following code for a qx.ui.table.model.Simple implementation. this.getTable().getTableModel().setDataAsMapArray(result); //result is null in case of no data. I refresh the data using a qooxdoo button which calls the above code. Whenever there is no data, I still see the old data. Do you know why? <code> _loadData : function() { var rpc = new qx.io.remote.Rpc(this.getTable().getTableModel().getServiceUrl(), this.getRpcService()); this.info ('Loading row data'); that = this; var _handler = function(result, exc) { if (exc == null) { if (result != null) { that.getTable().getTableModel().setDataAsMapArray(result); } else { that.getTable().getTableModel().setDataAsMapArray(result); //this doesn't work //do some more } } else { that.info("Exception from the server: "+exc); } }; rpc.callAsync(_handler, myMethod, mydata); } </code> Thanks. Kanugula. |
|
|
Re: Unable to clear data from Simple TableDon't pass in null if there is no data, pass in an empty array.
this.getTable().getTableModel().setDataAsMapArray([]); that will clear the data. Jim
On Fri, Jun 26, 2009 at 10:09 AM, Kanugula <venkata.kanugula@...> wrote:
------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Unable to clear data from Simple TableIt worked!
Thank you Jim.
|
| Free embeddable forum powered by Nabble | Forum Help |