First of all, the specific part that I'm stumped on is how to get a complex
datatype like qx.data.Array to play nice with the form controller. I
understand that qx.data.Array works just great with the List, but I'm not
aiming to use selection as my data. Allow me to explain what I'm trying to
accomplish.

The idea is to have a widget that contains a few form elements, after
entering or picking data in these form elements, you'd hit an "Add" button
to add it as an object to a "pool" of other objects. A shopping cart widget
would probably be the closest thing conceptually. The reason I want it to be
a form widget is that it would be an intuitive way to add one-to-many
relationships to some other thing from within a form. 
http://www.patternry.com/p=inline-input-adder/
http://www.patternry.com/p=inline-input-adder/  touches on the concept I'm
trying to model.

For example, say I have a form that edits a person's details, and I want to
have a "friends" control that allows you to add friends of this person, but
also has a "notes" field to add notes about that friend's relationship with
this person, and a date field that shows when the person first became
friends with that person. You hit "ADD" to add this friend record to a list
of other friend records. What if I want to filter or sort by some criteria
in this list? A simple table would be great, but doesn't allow any bindings
to be set from the model of a form controller.

The direction I took is to use a simple table, but my data model is a
separate property of type qx.data.Array. The goal was to get it to play nice
with the form controller by having the widget act as a string-type field,
and de-/serialize the data when changes are made to the model, and reflect
those changes in the table as well. The wall I ran into was that I want the
binding to fire when any change to the data array occurs via the
"changeBubble" event, not the "changeDataModel" event. As far as I know,
that kind of binding is only possible through the list controller, which
only works with lists and list items. Is there another way or am I screwed?
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Stumped-on-how-to-create-a-sort-of-Object-Pool-form-widget-Databinding-impossible-tp5897862p5897862.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to