On Sun, Dec 5, 2010 at 09:00, Marco Pompili <[email protected]> wrote:
>
> If i use the qx.data.Array() wrapper i get the error above:
>
> this.__rowArr[rowIndex] is undefined
> return this.__rowArr[rowIndex][columnIndex];
>
> I'm missing something. I guess i'm missing a row ?
>
You're not just missing a row; I think you're missing a concept.
qx.data.Array() does not (and can not, in JavaScript) override the []
operator. Using the .push method of a qx.data.Array instance pushes the
value onto an internally-maintained array. The equivalent of arr[23] = 42;
using qx.data.Array would be arr.setItem(23, 42); and to retrieve that 42,
would be var x = arr.getItem(23);. You can't use the [] operator to retrieve
values from a qx.data.Array so when table accesses this.__rowArr[rowIndex]
it finds nothing there. (That would be an attempt to access the rowIndex *
property* of the qx.data.Array instance.
Table expects a native array, not a qx.data.Array. What you have in your
sample code, using the native array, is the correct way to do it.
> As Derrel is saying i want to get much browser indipendence as possible.
> Using the qx.lang.Core.arrayForEach class should help with that as I
> understand.
>
> The code works perfectly, so thank you both for your help, that's just this
> thing with the qx.data.Array() class that makes me curious about what is
> the
> problem.
>
Hopefully I've cleared that up for you.
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