Hi I am trying to assign a dt1 value to resultdt same as from dt2 value to resultdt. But I am asigning value to resultdt .but it is throwing an error that dt1 value can’t assigned to resultdt.
could you please explain clearly?
I have to compare two excels if there is match found for dt1 current row value with dt2 data for a particular column .Then I have to assign the values to result dt based on their column name from both dt1 and dt2
In this I’m getting issue that dt1.rows(indxNumbr).item(“ColumnName”)=currentrow(“ColumnName”) ie
indxNumber from for each or
dt1.rows(indxNumbr).item(“ColumnName”)=dt2.rows(rowindx).item(“ColumnName”) i.e rowindex from lookup
gives you the matched columns
dt.asenumberable.where(function(x) dt2.asenumberable.any(function(a) a(“columnName”).tostring=x(“ColumnName”).tostring)).copytodatatble
I need to map the data to resultdt ie…, third data table
resultdt=dt.asenumberable.where(function(x) dt2.asenumberable.any(function(a) a(“columnName”).tostring=x(“ColumnName”).tostring)).copytodatatble
Thanks for the response. resultdt is a template so I need to map the fields from both datatables
For me Filtered data part is done .but I’m trying to map the fields to result template when I try to assign the values it throwing an error that can’t be assigned .
this is the way I’m assigning the values dt1.rows(indxNumbr).item(“ColumnName”)=currentrow(“ColumnName”) ie
indxNumber from for each or
dt1.rows(indxNumbr).item(“ColumnName”)=dt2.rows(rowindx).item(“ColumnName”) i.e rowindex from lookup
thanks for the response. My issue is I want assign that matched data into result dt. dt2 data is available in dt1. that data should be mapped to the fields of result dt