Hi qooxdooers,

I'm programming a multilingual form and i want to create a model that
divides the form in a non-localized section and a localized section, to be
more clear something like this:

var skeleton = {
"table" : "properties",
"table_l10n" : "properties_l10n",
        "unlocalized" : [{
                "ctype" : ctype.getModelSelection().getItem(0),
                "ptype" : ptype.getModelSelection().getItem(0),
                "currency" : currency.getModelSelection().getItem(0),
                "price" : price.getValue(),
                "sqmtrs" : sqmtrs.getValue()
        }],
        "en" : [{
                "city" : city_en.getValue(),
                "quarter" : quarter_en.getValue(),
                "street" : street_en.getValue()
        }],
        "ru" : [{
                "city" : city_ru.getValue(),
                "quarter" : quarter_ru.getValue(),
                "street" : street_ru.getValue()
        }]
}

I find this data structure more elegant, but i don't have idea how to bind
this json to a form model.

I guess that using qx.data.marshal.Json.createModel(skeleton) won't work...

Anyone has an idea ? How should you implement this ?

I'm not so expert with controllers... so i'm asking if this method is
possible or i'm just shooting clouds.

Thank you all.

-----
La coincidenza non ha madre.
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Form-model-with-arrays-tp6057547p6057547.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to