Ok, I see, I have to set cols before and can't change them after. Let's forget about Cols now (I've uncommented this line: tableModel.setColumns([ "id", "name", "age" ]);).
Could you please tell me how to extract the "values" and set them as data for my table. Thank you. Derrell Lipman wrote: > > On Fri, Feb 11, 2011 at 16:23, slah <[email protected]> wrote: >> >> Hello, >> >> I've corrected the JSON server output as Jim noticed. >> >> what I need is to use the "fields" array to set column names >> automatically >> (taht's why there's a comment Derrel) and "values" array of arrays to set >> the table data rows. > > That's not the way it's typically done, and you may not have that > option. I know that you can NOT change the *number* of columns once > the table is established. The number of columns is too intertwined > with the inner workings of the table so you aren't allowed to change > after it's established initially. You may be able to change the labels > on the columns if that's all you're trying to do (I don't recall > whether there's an interface to do that), but it's not done via the > setData() method. > > Cheers, > > Derrell > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- View this message in context: http://qooxdoo.678.n2.nabble.com/RPC-JSON-Server-First-test-tp6016136p6017459.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
