Hi,
did Ana Rita's answer of our second question (Object of qx.util.Json.parse)
also solve the issue you described in this thread?
Am 02.06.2011 um 13:24 schrieb comm1x:
> Hi all
> I tried to search for the decision of the problem at a forum, but and
> haven't found. I write the container which accepts JSON-data and set them in
> the table.
>
> Application.js:
> //------------------------------------------------------------
> var scenario = ([
> {id: 1, name: "fs", after: [0]},
> {id: 2, name: "ss", after: [1]},
> {id: 3, name: "ts", after: [1, 2]}
> ]);
>
> var container = new gui.List(scenario, steps);
> this.getRoot().add(container);
> //------------------------------------------------------------
>
>
> List.js
> //------------------------------------------------------------
> qx.Class.define("gui.List",
> {
> extend : qx.ui.container.Composite,
>
> construct : function(scenario, steps)
> {
> var layout = new qx.ui.layout.Canvas;
> this.base(arguments, layout);
> this.setLayout(layout);
>
> // Table Model
> var tableModel = new qx.ui.table.model.Simple();
> tableModel.setColumns([ "ID", "Stage", "After"]);
> tableModel.setColumnEditable(1, true);
> tableModel.setColumnEditable(2, true);
>
> scenario.arrayForEach = qx.lang.Core.arrayForEach;
> this.debug(scenario[0]);
>
> // Table
> this.add(table, {left: 100, top: 100});
>
>
> }
>
> });
> //------------------------------------------------------------
>
> I am not assured that I correctly do. And I don't know what to do now. How
> to set the data in the table?
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/JSON-to-Simple-tp6430726p6430726.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Discover what all the cheering's about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel