I have a problem on converting the default-checkbox-values (true / false)
whithin a form to my database-specific format ("yes" / "no"). 
In the documentation i found something about "converters" but i can't find a
working example. Is there a simple way to do this in both directions,
without parsing/modifying the serialized string?

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);
var model = controller.createModel();
var ser = qx.util.Serializer.toJson(model);
this.debug(ser); // Output: {"Success":false} - How to get {"Success":"no"}
here??

// Send it to database ...

Thanks for any help.
ReHa

-- 
View this message in context: 
http://n2.nabble.com/How-to-simply-convert-form-values-bevor-sending-receiving-from-to-database-server-tp4895053p4895053.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

Reply via email to