On Fri, Mar 18, 2011 at 04:12, Luc Saffre <[email protected]> wrote:

> Here is another riddle which took me already a whole workday and for
> which I hope that some experienced Qx user will find the solution at a
> glance. Thanks in advance for any hint. Even vague suggestions are
> welcome, because currently I'm stuck like a duck in a thunderstorm...
>
> (The following text, including the 2 screenshots, is also at
> http://lino.saffre-rumma.net/tickets/33.html)
>
> Luc
>
...

>  qx.Class.define("lino.products_Products_grid",
>  {
>    extend : lino.TableWindow,
>    members : {
>      content_type : 19,
>      before_row_edit : function(record){},
>      createTable : function() {
>        var tm = new lino.RemoteTableModel(this,'/api/products/Products');
>        tm.setColumns(
>          [ "ID", "name", "name (et)", "Category", "vatExempt", "price",
> "description", "description (et)" ],
>          [ 0, 1, 2, 3, 5, 6, 7, 8 ]
>        ); // columnNameArr, columnIdArr
>

Some people love the column ids. Personally, I've never found a great use
for them. When they're used, however, they re typically strings, not
numbers, and without looking at the code, I'm not sure what problems using
numbers would cause. Also, I think when you use them, the format of your
data returned by the server must be in the map format, not the simple array
format as you're using.

To test my hypothesis, please remove the second parameter to tm.setColumns()
and see if your results are more favorable.

Derrell
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to