Hey ReHa,
Here is a working example.
var form = new qx.ui.form.Form();
var checkbox = new qx.ui.form.CheckBox();
form.add(checkbox, "Success", null, "Success");
var controller = new qx.data.controller.Form(null, form);
controller.addBindingOptions("Success", {
converter : function(data) {
return data == "yes";
}}, {
converter : function(data) {
return data ? "yes" : "no";
}});
var model = controller.createModel();
var ser = qx.util.Serializer.toJson(model);
this.debug(ser);
I hope that helps. :)
Regards,
Martin
--
View this message in context:
http://n2.nabble.com/How-to-simply-convert-form-values-bevor-sending-receiving-from-to-database-server-tp4895053p4895439.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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