Hello,
I would like to fill a datatable in a random order. I cannot therefore use the classical Add Data Row/Add Data Column directly. I thought about creating an Array of Arrays, that I can fill in the order that I want, and then transform its components into Data Rows. The goal is to avoid passing through an Excel sheet in order to save time and memory. Practically :
I have 12*3000 String values that I would like to fill in a DataTable (3000 rows and 12 columns). My main question is :
How do I initialize the Array of Arrays ? I tried everything, a For each inside a for each as explained here Multidimensional arrays - #2 by Java , in this case I still get an error message that the array needs to be initialized, to all kinds of initializations in an Assign activity (Assign : myArray = new String[12][3000], = [12][3000], etc. nothing works…). I know that I can write by hand {{“”, “”, “”, …}, {}, {}, … {}} 12x3000 times but I’m not gonna do that
Thanks in advance,
Remie