Hello,
i try some filters on a filetrtabel. But in the listener the scrit
alwys stops. The actual code is:
At the moment i start add the numeric filter. the script stops loading
the listboxload . Som eiedea? ANd when i see the addFiletr definition
i cant find any option to set the column the filter should affected. Is
this not possible only to affect only one column by the filter?
Thanks for answer
getIMEIstatusfilter : function() {
var container = new qx.ui.container.Composite(new
qx.ui.layout.VBox(2));
var selectBox = new qx.ui.form.SelectBox();
container.setMargin(3);
var req = new
qx.io.remote.Request(jobs.system.Globals.processorURL, "POST",
"application/json");
req.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
req.setParameter("m", "startseite");
req.setParameter("c", "getIMEIstatusfilter");
req.addListener("completed", function(e) {
var j = e.getContent();
if(!isNaN(j["USERID"]) && j["result"] == "OK") {
for(var nr in j["data"]) {
var tempItem = new
qx.ui.form.ListItem(j["data"][nr]["value"]);
tempItem.setUserData("key",
j["data"][nr]["key"]);
tempItem.setUserData("value",
j["data"][nr]["value"]);
selectBox.add(tempItem);
if (j["data"][nr]["value"] == "Ware erfasst") {
selectBox.setSelection([tempItem]);
}
}
}
},this);
req.send(); // Send Request
selectBox.addListener("changeSelection", function(e) {
var key = e.getData()[0].getUserData("key");
var value = e.getData()[0].getUserData("value");
if(key == "") {
//this.tableModel2.resetHiddenRows();
}
else {
this.tableModel2.addNumericFilter("==", 1, "A
boolean");
//this.tableModel2.addRegex("==", value)
this.tableModel2.applyFilters();
//alert(e.getData()[0].getUserData("key"));
}
},this);
container.add(selectBox);
return container;
},
------------------------------------------------------------------------------
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