Thank you very much ErraticAttach and txnelson
Jim, could it be that the indexing is backwards somehow?
the Loc sorted is getting for each row in B the row number in Table A that contain the information I want to put in table B
However, i get an error inside the Loop about the scoping.
1. if I understand correctly, "rows" should have the same number of rows as table B
2. the parameter "i" increase from 1 to the number of rows in B.
3. in each iteration of the loop , the parameter "theRow" is assigned the corresponding i'th number in "rows".
so it actually holds the a number representing a specific line in table A that holds the data I want.
4. so now all we need to do is read the value in the appropriate column in A on that line and put it in the i'th row of B in the column I want.
However, I get an error about "scoped data table access requires a data table column or variable in access or evaluation of ..."
looking at the code I think that the script is referencing the wrong number as the index.
so I Switched between [i] and [theRow]
"
For( i = 1, i <= N Rows( rows ), i++,
theRow = rows[i];
dta:sensor1[theRow] = dtb:sensor1[i];
dta:sensor2[theRow] = dtb:sensor2[i];
dta:sensor3[theRow] = dtb:sensor3[i];
);
should actually read
For( i = 1, i <= N Rows( rows ), i++,
theRow = rows[i];
dta:sensor1[i] = dtb:sensor1[theRow];
dta:sensor2[i] = dtb:sensor2[theRow];
dta:sensor3[i] = dtb:sensor3[theRow];
);
however that does not help either.
I am still not familiar with JSL, so could it be that the way I specify the values or the column and row be incorrect?
Thank you, very much.