How do I initialize a Multi-dimensional Array in BIRT? [message #1313783] |
Thu, 24 April 2014 22:40  |
Eclipse User |
|
|
|
I'm trying to create a multi-dimensional array (with only two dimensions) in a fetch method to collect rows as they come in and perform some complex calculations. This works fine for single dimensional arrays, but if I try to use a multi-dimensional array, it seems that the second dimension is being ignored.
For example, if I use the following code:
multiArray = [];
multiArray[0,0] = 1;
scriptLogger.info(" ======== multiArray[0,0]: " + multiArray[0,0]);
scriptLogger.info(" ======== multiArray[1,0]: " + multiArray[1,0]);
scriptLogger.info(" ======== multiArray[2,0]: " + multiArray[2,0]);
scriptLogger.info(" ======== multiArray[99,0]: " + multiArray[99,0]);
The log shows 1 as the value for multiArray[0,0] all the way through multiArray[99,0]. I would like to see null or zero for all of them *except* [0,0].
What am I doing wrong? :/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03238 seconds