Hey, I don't see an array in your posted data structure so I'm wondering why the debug statement is working? Could you check the classname (getFields().classname) and see if thats an data array? If yes, your posted data could not be correct because there is no array in it. Or there is a bug in the marshaling we need to figure out. :) Regards, Martin
Am 25.11.2012 um 20:58 schrieb angelo <[email protected]>: > I'm wondering about the following. > > At some point in an application I'm building, my model has a structure like > this (don't bother about syntax details, I'm only posting a quick example): > > { > 'fields': { > 'name' : 'somevalue', > 'type' : 'someothervalue' > } > } > > Inside my application, the debugger in Chrome nicely presents me with > 'someothervalue' if I do this: > > this.__model.getFields().toArray()[0].getType() > > Question now is, what field name in the form should I used to automatically > bind a TextField to the model? > > The following doesn't give the effect I'm looking for: > > var idx = 0; // getting the first item from the array only > var fld = new qx.ui.form.TextField(); > this.__form.add(fld, 'Type', null, 'fields[+idx+'].type', > this); > this.__controller.setModel(this.__model); // form and > controller were created and linked earlier > > Either I'm completely on the wrong track, or I'm missing a small detail. Who > can tell me what to change? > > Thanks already, > > Angelo > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Data-binding-question-tp7582102.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
