2008/2/6 Wieringa Timotheus <[EMAIL PROTECTED]>:
>
>
> Hello again,
>
> I just got this stuff to work - a little bit!
>
> Looking at the Demo Browser examples i thought i must insert
>
> rowData = [];
> rowData.push(content);
> tableModel.setData(rowData);
>
> to get the data.
>
> And yes it works. But only for one row!
> When i got more than one row out of my database the response is like
> ["Data1_1", "Data1_2",
> "Data1_3","Data1_4","Data2_1","Data2_2","Data2_3","Data2_4","Data3_1",…]
>
> But only the first row is displayed in the table.

The rowData array is an array of ROWS.  Each row is itself an array of
COLUMN data.  Therefore, to get two rows of data, you'd need:

[
  [ "Data1_1", "Data1_2", "Data1_3", "Data1_4" ],
  [ "Data2_1", "Data2_2", "Data2_3", "Data2_4" ]
]

Given your scenario, it sounds like it'd be easiest to have the server
return a JSON result that already contains an array of arrays like
this.

Cheers,

Derrell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to