On Sat, Dec 4, 2010 at 21:32, Marco Pompili <[email protected]> wrote:

>
> Thank you for your suggestions. I'm following aditya's method so I don't
> need
> to know what the column's name are.
>
> I've set up this code:
>
> var data = response.getContent();
> var rows = new Array();
>
> var addRow = function (obj) {
>  rows.push(qx.lang.Object.getValues(obj));
> };
>
> data.forEach( addRow, data );
> tableDM.setData( rows );
>
> This works perfectly
>
> Now a strange thing is that if I use the qooxdoo Array object:
>
> var rows = new qx.data.Array();
>
> The code doesn't works and Firebug gives me this error message;
>
> this.__pl[bN] is undefined
> }return this.__pl[bN][bM];
>
> I don't get it...
>

You can't debug easily with the build version. You should be debugging with
the source version. If you *must* use the build version for your debugging,
then turn off the optimization that shortens variable names. I don't
remember what it's called at the moment, so search the qooxdoo wiki for
OPTIMIZE or OPTIMIZATION. There are four values in an array, and you'll want
to remove at least one of them in your config.json file.

As to your particular problem... the forEach() construct of a native array
is fairly new to JavaScript. It's supported by some browsers, but if you
care about browser independence, you probably shouldn't use it quite yet.
The static method qx.lang.arrayForEach uses the built-in Array.forEach()
method if it exists, and emulates it if the native method does not exist.
It's a better choice.

qx.data.Array is supposed to support the forEach() method, from my reading
of the code. You'll have to get your debugging working as described above to
see what problem it's encountering.

Cheers,

Derrell
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to