Hi Stefan,
thanks for your tip.
I have some new problems to fill the table with data.
Webapp return data in json format :
[{"id":1,"alias":"bbb","name":"aaa"},{"id":2,"alias":"bbb","name":"aaa"},{"id":3,"alias":"bbb","name":"aaa"},{"id":4,"alias":"bbb","name":"aaa"}]
Definition :
qx.Class.define("test.TestModel",
{
extend : qx.ui.table.model.Simple,
construct : function() {
this.base(arguments);
var req = new
qx.io.remote.Request("http://localhost:8080/testwebapp",
"GET", "application/json");
req.addListener("completed", function(e) {
var myObject = e.getContent();
this.setData(myObject);
});
req.addListener("failed", function(e) {
alert("FAILED : " + e.getStatusCode() + " " +
req.getUrl());
});
req.addListener("sending", function(e) {
alert("SENDING : ");
});
req.addListener("receiving", function(e) {
alert("RECEIVING : " + e);
});
req.addListener("timeout", function(e) {
alert("TIMEOUT : " + e.getStatusCode());
});
req.addListener("aborted", function(e) {
alert("ABORTED : " + e);
});
req.send();
}
});
Usage :
var tableModel = new test.TestModel();
tableModel.setColumns([ "ID", "Name", "Alias" ]);
tableModel.setColumnEditable(1, false);
tableModel.setColumnEditable(2, false);
tableModel.setColumnEditable(3, false);
var table = new qx.ui.table.Table(tableModel);
table.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION);
The problem is that the columns (id, name, alias) are visible but no data is
shown in the table. Does anyone has an idea ?
Greetings,
Enes
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/qx-io-remote-Reques-throws-this-setUrl-is-not-a-function-tp5900771p5908650.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel