Fixed... a silly, stupid oversight....

This snippet of code from the playground

form.add(sb, "SelectBox", null, "type", null);
controller.addBindingOptions(sb,
                    {converter:function (data, model, source, target) {
                        // model --> target


Looked like this in my production code

form.add(fld, label, null, field, null);
controller.addBindingOptions(*/field/*,
                    {converter:function (data, model, source, target) {
                        // model --> target

where it should have been 

form.add(fld, label, null, field, null);
controller.addBindingOptions(*/fld/*,
                    {converter:function (data, model, source, target) {
                        // model --> target

So, I had the right solution from the start, but accidentily passed a string
paramter where I should have passed the selectbox.... 



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Binding-a-SelectBox-to-a-text-item-in-a-model-tp7582561p7582579.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to