Hello:
I am trying to assign the value of a specific cell on a selected row from one table with the value from a cell of a selected row from a different table.
Below is the section of script. There is a third table used to get a group of serial numbers used for the lookup criteria (omitted for brevity).
I am able to successfully match 1 row from each of the tables (ateDataTable which is where I want the data FROM and correlationTable which is where I want to copy the data into).
____
For(k=1,k<=N Row(selectedRows),k++,
//Find the row in the ATE and Correlation tables that matches the serial number for the current row in the selected group of the bench table
debugSerialNumber=selectedRows:Serial Number[k];
selAteRows=ateDataTable << Select Where(:Part id == selectedRows:Serial Number[k],current selection("clear"));
numOfATERowsThatMatch = N Row( ateDataTable << Get Selected Rows );
selCorrRows=correlationTable << Select Where(:Serial Number == selectedRows:Serial Number[k],current selection("clear"));
numOfCorrRowsThatMatch = N Row( correlationTable << Get Selected Rows );
//Get the value of the ateNameToCompare for the current ATE table row that matched the Part ID. Assign it to the benchDataTable
debugValueCorrelATE = correlationTable:ATE;
debugValueATE = ateDataTable:ateNameToCompare;
if(numOfATERowsThatMatch>0,
correlationTable:ATE= ateDataTable:ateNameToCompare; //PROBLEM HERE!!!!
);
);